Browse Source

- Removed useless class property in GUI class

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
41e18fd245
  1. 3
      src/GUI.cpp
  2. 8
      src/GUI.h

3
src/GUI.cpp

@ -352,12 +352,13 @@ void GUI::balloonClicked() { @@ -352,12 +352,13 @@ void GUI::balloonClicked() {
}
void GUI::acceptConnection() {
clientConnection = localServer->nextPendingConnection();
QLocalSocket *clientConnection = localServer->nextPendingConnection();
connect(clientConnection, SIGNAL(disconnected()), this, SLOT(readParamsOnSocket()));
qDebug("accepted connection from another instance");
}
void GUI::readParamsOnSocket() {
QLocalSocket *clientConnection = static_cast<QLocalSocket*>(sender());
if(clientConnection) {
QByteArray params = clientConnection->readAll();
if(!params.isEmpty()) {

8
src/GUI.h

@ -43,7 +43,6 @@ class QTimer; @@ -43,7 +43,6 @@ class QTimer;
class downloadFromURL;
class SearchEngine;
class QLocalServer;
class QLocalSocket;
class QCloseEvent;
class RSSImp;
class QShortcut;
@ -78,25 +77,24 @@ class GUI : public QMainWindow, private Ui::MainWindow{ @@ -78,25 +77,24 @@ class GUI : public QMainWindow, private Ui::MainWindow{
TransferListWidget *transferList;
TransferListFiltersWidget *transferListFilters;
PropertiesWidget *properties;
QSplitter *hSplitter;
QSplitter *vSplitter;
bool displaySpeedInTitle;
bool force_exit;
//unsigned int refreshInterval;
// Keyboard shortcuts
QShortcut *switchSearchShortcut;
QShortcut *switchSearchShortcut2;
QShortcut *switchTransferShortcut;
QShortcut *switchRSSShortcut;
// Widgets
QAction *prioSeparator;
QAction *prioSeparator2;
QSplitter *hSplitter;
QSplitter *vSplitter;
// Search
SearchEngine *searchEngine;
// RSS
QPointer<RSSImp> rssWidget;
// Misc
QLocalServer *localServer;
QLocalSocket *clientConnection;
protected slots:
// GUI related slots

Loading…
Cancel
Save