# HG changeset patch # User Jacob Dawid # Date 1327138819 -3600 # Node ID 7ecaa8a66d5a8844ef2f4414f2429c4866f2ef53 # Parent 8b7a98f12c9bb5a8009a521ec6e83fa415c3af84 GUI: Removed stylesheets from dock widgets and add missing slots. diff -r 8b7a98f12c9b -r 7ecaa8a66d5a gui/src/FilesDockWidget.cpp --- a/gui/src/FilesDockWidget.cpp Thu Dec 22 10:33:12 2011 +0100 +++ b/gui/src/FilesDockWidget.cpp Sat Jan 21 10:40:19 2012 +0100 @@ -98,18 +98,10 @@ completer = new QCompleter (m_fileSystemModel, this); m_currentDirectory->setCompleter (completer); - connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); - - setStyleSheet( - " QDockWidget { " - " border:1px solid rgba(200, 200, 200, 255); " - " background-color: qlineargradient(spread:pad, " - " x1:0.1, y1:0, x2:0.9, y2:1, " - " stop:0.256444 rgba(215, 215, 255, 255), " - " stop:0.550888 rgba(255, 255, 255, 255), " - " stop:0.780424 rgba(215, 215, 255, 255)); " - " } " - ); + connect (this, + SIGNAL (visibilityChanged(bool)), + this, + SLOT(handleVisibilityChanged(bool))); } void diff -r 8b7a98f12c9b -r 7ecaa8a66d5a gui/src/HistoryDockWidget.cpp --- a/gui/src/HistoryDockWidget.cpp Thu Dec 22 10:33:12 2011 +0100 +++ b/gui/src/HistoryDockWidget.cpp Sat Jan 21 10:40:19 2012 +0100 @@ -46,20 +46,20 @@ widget ()->setLayout (layout); - connect (m_filterLineEdit, SIGNAL (textEdited (QString)), &m_sortFilterProxyModel, SLOT (setFilterWildcard(QString))); - connect (m_historyListView, SIGNAL (doubleClicked (QModelIndex)), this, SLOT (handleDoubleClick (QModelIndex))); - connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + connect (m_filterLineEdit, + SIGNAL (textEdited (QString)), + &m_sortFilterProxyModel, + SLOT (setFilterWildcard(QString))); - setStyleSheet( - " QDockWidget { " - " border:1px solid rgba(200, 200, 200, 255); " - " background-color: qlineargradient(spread:pad, " - " x1:0.1, y1:0, x2:0.9, y2:1, " - " stop:0.256444 rgba(215, 255, 215, 255), " - " stop:0.550888 rgba(255, 255, 255, 255), " - " stop:0.780424 rgba(215, 255, 215, 255)); " - " } " - ); + connect (m_historyListView, + SIGNAL (doubleClicked (QModelIndex)), + this, + SLOT (handleDoubleClick (QModelIndex))); + + connect (this, + SIGNAL (visibilityChanged(bool)), + this, + SLOT(handleVisibilityChanged(bool))); } void @@ -76,6 +76,12 @@ } void +HistoryDockWidget::noticeSettings () +{ + // TODO: React on a settings change. +} + +void HistoryDockWidget::closeEvent (QCloseEvent *event) { emit activeChanged (false); diff -r 8b7a98f12c9b -r 7ecaa8a66d5a gui/src/HistoryDockWidget.h --- a/gui/src/HistoryDockWidget.h Thu Dec 22 10:33:12 2011 +0100 +++ b/gui/src/HistoryDockWidget.h Sat Jan 21 10:40:19 2012 +0100 @@ -33,6 +33,7 @@ public slots: void handleVisibilityChanged (bool visible); + void noticeSettings (); signals: void information (QString message); diff -r 8b7a98f12c9b -r 7ecaa8a66d5a gui/src/WorkspaceView.cpp --- a/gui/src/WorkspaceView.cpp Thu Dec 22 10:33:12 2011 +0100 +++ b/gui/src/WorkspaceView.cpp Sat Jan 21 10:40:19 2012 +0100 @@ -59,20 +59,21 @@ m_variablesTreeWidget->setAlternatingRowColors (true); m_variablesTreeWidget->setAnimated (true); - connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + connect (this, + SIGNAL (visibilityChanged(bool)), + this, + SLOT(handleVisibilityChanged(bool))); - setStyleSheet( - " QDockWidget { " - " border:1px solid rgba(200, 200, 200, 255); " - " background-color: qlineargradient(spread:pad, " - " x1:0.1, y1:0, x2:0.9, y2:1, " - " stop:0.256444 rgba(255, 215, 215, 255), " - " stop:0.550888 rgba(255, 255, 255, 255), " - " stop:0.780424 rgba(255, 215, 215, 255)); " - " } " - ); + connect (OctaveLink::instance(), + SIGNAL (symbolTableChanged()), + this, + SLOT (fetchSymbolTable())); +} - connect (OctaveLink::instance(), SIGNAL (symbolTableChanged()), this, SLOT (fetchSymbolTable())); +void +WorkspaceView::noticeSettings () +{ + // TODO: React on a settings change. } void diff -r 8b7a98f12c9b -r 7ecaa8a66d5a gui/src/WorkspaceView.h --- a/gui/src/WorkspaceView.h Thu Dec 22 10:33:12 2011 +0100 +++ b/gui/src/WorkspaceView.h Sat Jan 21 10:40:19 2012 +0100 @@ -32,6 +32,7 @@ public slots: void fetchSymbolTable (); void handleVisibilityChanged (bool visible); + void noticeSettings (); signals: /** Custom signal that tells if a user has clicke away that dock widget. */