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() {
} }
void GUI::acceptConnection() { void GUI::acceptConnection() {
clientConnection = localServer->nextPendingConnection(); QLocalSocket *clientConnection = localServer->nextPendingConnection();
connect(clientConnection, SIGNAL(disconnected()), this, SLOT(readParamsOnSocket())); connect(clientConnection, SIGNAL(disconnected()), this, SLOT(readParamsOnSocket()));
qDebug("accepted connection from another instance"); qDebug("accepted connection from another instance");
} }
void GUI::readParamsOnSocket() { void GUI::readParamsOnSocket() {
QLocalSocket *clientConnection = static_cast<QLocalSocket*>(sender());
if(clientConnection) { if(clientConnection) {
QByteArray params = clientConnection->readAll(); QByteArray params = clientConnection->readAll();
if(!params.isEmpty()) { if(!params.isEmpty()) {

8
src/GUI.h

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

Loading…
Cancel
Save