X-Git-Url: http://git.maemo.org/git/?p=confmgr;a=blobdiff_plain;f=mainwindow.cpp;fp=mainwindow.cpp;h=6b7a6b879b451da98e8cda8f914f0fa4284f08f7;hp=bac22c272e999e8cf2310417d00cd5af227aa2ed;hb=2921165c320065ff5ca64e3abdc1e626dbd71613;hpb=bd83d4fe6b8c664003809ac01630ed404f56c128 diff --git a/mainwindow.cpp b/mainwindow.cpp index bac22c2..6b7a6b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,6 +1,7 @@ #include "mainwindow.h" #include "ui_mainwindow.h" #include "xmlutil.h" +#include "aboutdialog.h" #include #include @@ -11,6 +12,10 @@ MainWindow::MainWindow(QWidget *parent) : ui->setupUi(this); connect(&mFrmAddProfile, SIGNAL(ProfileAddedSuccessfully(Profile)), this, SLOT(updateProfileList(Profile))); +/* + connect(&ui->mainMenuAbout, SIGNAL(Triggered(QAction*)), + this, SLOT(mainAboutClickedSlot())); +*/ Initialize(); } @@ -108,17 +113,23 @@ void MainWindow::on_mainPBEditProfile_clicked() mFrmAddProfile.showProfile(p); } -void MainWindow::on_mainPBAbout_clicked() -{ - QMessageBox msg; - msg.setText("A nice screen yet to be implemented!"); - msg.exec(); - return; -} - void MainWindow::on_mainPBQuit_clicked() { mConfig.writeAllProfiles(); mConfig.closeConfig(); close(); } + +void MainWindow::on_actionAbout_triggered() +{ + AboutDialog abtdlg; + abtdlg.exec(); +} + +void MainWindow::on_actionAdd_Templated_Profile_triggered() +{ + QMessageBox msg; + msg.setText("Placeholder for a nice function yet to be implemented!"); + msg.exec(); + return; +}