Changeset 40 for gui/main_window.cpp


Ignore:
Timestamp:
01/06/08 17:37:58 (4 years ago)
Author:
sander
Message:

About dialog added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/main_window.cpp

    r39 r40  
    66#include "main_window.h" 
    77#include "preferences_dialog.h" 
     8#include "about_dialog.h" 
    89 
    910MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) 
     
    5354    // GUI 
    5455    connect(action_Preferences, SIGNAL(triggered(bool)), this, SLOT(showPreferencesDialog())); 
     56    connect(action_About, SIGNAL(triggered(bool)), this, SLOT(showAboutDialog())); 
    5557    connect(volumeSlider, SIGNAL(sliderPressed()), this, SLOT(volumeSliderPressed())); 
    5658    connect(volumeSlider, SIGNAL(sliderReleased()), this, SLOT(setVolume())); 
     
    132134    connect(&pref, SIGNAL(systemTraySet(bool)), trayIcon, SLOT(setVisible(bool))); 
    133135    pref.exec(); 
     136} 
     137 
     138void MainWindow::showAboutDialog() 
     139{ 
     140    AboutDialog about(this); 
     141    about.exec(); 
    134142} 
    135143 
Note: See TracChangeset for help on using the changeset viewer.