Changeset 31
- Timestamp:
- 01/06/08 13:39:07 (4 years ago)
- Location:
- gui
- Files:
-
- 2 edited
-
main_window.cpp (modified) (3 diffs)
-
main_window.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gui/main_window.cpp
r29 r31 2 2 #include <QtGui> 3 3 #include <QIcon> 4 #include <QDebug> 4 5 5 6 #include "main_window.h" … … 8 9 MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) 9 10 { 11 QSettings settings; 10 12 setupUi(this); 11 13 12 14 slidingVolume = false; 15 16 //Tray Icon stuf 17 setupTrayIcon(); 18 if (settings.value("systemtray").toBool()) { 19 trayIcon->show(); 20 } 13 21 14 22 // Start connection thread … … 58 66 // Timer 59 67 connect(&statusTimer, SIGNAL(timeout()), &mpd, SLOT(getStatus())); 60 61 //Tray icon62 setupTrayIcon();63 if (settings.value("systemtray").toBool()) {64 trayIcon->show();65 }66 68 67 69 mpd.getStatus(); -
gui/main_window.h
r29 r31 27 27 28 28 private: 29 QSettings settings;30 29 MPDConnection mpd; 31 30 MPDStatus mpd_status;
Note: See TracChangeset
for help on using the changeset viewer.
