Changeset 40
- Timestamp:
- 01/06/08 17:37:58 (4 years ago)
- Files:
-
- 3 added
- 4 edited
-
QtMPC.pro (modified) (3 diffs)
-
gui/about_dialog.cpp (added)
-
gui/about_dialog.h (added)
-
gui/about_dialog.ui (added)
-
gui/main_window.cpp (modified) (3 diffs)
-
gui/main_window.h (modified) (1 diff)
-
gui/main_window.ui (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
QtMPC.pro
r37 r40 17 17 gui/musiclibrarymodel.h \ 18 18 gui/playlisttablemodel.h \ 19 gui/about_dialog.h \ 19 20 gui/preferences_dialog.h \ 20 21 lib/mpdconnection.h \ … … 24 25 25 26 FORMS += gui/main_window.ui \ 27 gui/about_dialog.ui \ 26 28 gui/preferences_dialog.ui 27 29 … … 31 33 gui/musiclibrarymodel.cpp \ 32 34 gui/playlisttablemodel.cpp \ 35 gui/about_dialog.cpp \ 33 36 gui/preferences_dialog.cpp \ 34 37 lib/mpdconnection.cpp \ -
gui/main_window.cpp
r39 r40 6 6 #include "main_window.h" 7 7 #include "preferences_dialog.h" 8 #include "about_dialog.h" 8 9 9 10 MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) … … 53 54 // GUI 54 55 connect(action_Preferences, SIGNAL(triggered(bool)), this, SLOT(showPreferencesDialog())); 56 connect(action_About, SIGNAL(triggered(bool)), this, SLOT(showAboutDialog())); 55 57 connect(volumeSlider, SIGNAL(sliderPressed()), this, SLOT(volumeSliderPressed())); 56 58 connect(volumeSlider, SIGNAL(sliderReleased()), this, SLOT(setVolume())); … … 132 134 connect(&pref, SIGNAL(systemTraySet(bool)), trayIcon, SLOT(setVisible(bool))); 133 135 pref.exec(); 136 } 137 138 void MainWindow::showAboutDialog() 139 { 140 AboutDialog about(this); 141 about.exec(); 134 142 } 135 143 -
gui/main_window.h
r38 r40 47 47 private slots: 48 48 void showPreferencesDialog(); 49 void showAboutDialog(); 49 50 void volumeSliderPressed(); 50 51 void volumeSliderReleased(); -
gui/main_window.ui
r38 r40 418 418 <addaction name="action_Preferences" /> 419 419 </widget> 420 <widget class="QMenu" name="menu_Help" > 421 <property name="title" > 422 <string>&Help</string> 423 </property> 424 <addaction name="action_About" /> 425 </widget> 420 426 <addaction name="menu_File" /> 421 427 <addaction name="menu_Edit" /> 428 <addaction name="menu_Help" /> 422 429 </widget> 423 430 <widget class="QStatusBar" name="statusbar" /> … … 432 439 </property> 433 440 </action> 441 <action name="action_About" > 442 <property name="text" > 443 <string>&About</string> 444 </property> 445 </action> 434 446 </widget> 435 447 <resources/>
Note: See TracChangeset
for help on using the changeset viewer.
