Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 525:3edbe1af2c85
Remove dead statusdialog
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 29 Apr 2014 13:29:28 +0000 |
parents | a097dd86cb4d |
children | dec797c7230c |
comparison
equal
deleted
inserted
replaced
524:a097dd86cb4d | 525:3edbe1af2c85 |
---|---|
44 | 44 |
45 #include "certificatelist.h" | 45 #include "certificatelist.h" |
46 #include "downloader.h" | 46 #include "downloader.h" |
47 #include "helpdialog.h" | 47 #include "helpdialog.h" |
48 #include "aboutdialog.h" | 48 #include "aboutdialog.h" |
49 #include "statusdialog.h" | |
50 #include "certificateitemdelegate.h" | 49 #include "certificateitemdelegate.h" |
51 #include "separatoritemdelegate.h" | 50 #include "separatoritemdelegate.h" |
52 #include "installwrapper.h" | 51 #include "installwrapper.h" |
53 #include "util.h" | 52 #include "util.h" |
54 | 53 |
316 { | 315 { |
317 mMenuBar = new QMenuBar(this); | 316 mMenuBar = new QMenuBar(this); |
318 QMenu *mMenu = new QMenu(tr("Menu"), mMenuBar); | 317 QMenu *mMenu = new QMenu(tr("Menu"), mMenuBar); |
319 mMenuBar->addMenu(mMenu); | 318 mMenuBar->addMenu(mMenu); |
320 QAction *update = mMenu->addAction(tr("Force Update")); | 319 QAction *update = mMenu->addAction(tr("Force Update")); |
321 // QAction *settings = mMenu->addAction(tr("Settings")); | |
322 // QAction *status = mMenu->addAction(tr("Statusdialog")); | |
323 mMenu->addSeparator(); | 320 mMenu->addSeparator(); |
324 QAction *help = mMenu->addAction(tr("Help")); | 321 QAction *help = mMenu->addAction(tr("Help")); |
325 QAction *about = mMenu->addAction(tr("About")); | 322 QAction *about = mMenu->addAction(tr("About")); |
326 mMenu->addSeparator(); | 323 mMenu->addSeparator(); |
327 QAction *quit = mMenu->addAction(tr("Quit")); | 324 QAction *quit = mMenu->addAction(tr("Quit")); |
328 connect(update, SIGNAL(triggered()), this, SLOT(checkUpdates())); | 325 connect(update, SIGNAL(triggered()), this, SLOT(checkUpdates())); |
329 // connect(settings, SIGNAL(triggered()), this, SLOT(showSettings())); | |
330 // connect(status, SIGNAL(triggered()), this, SLOT(showStatus())); | |
331 connect(help, SIGNAL(triggered()), this, SLOT(showHelp())); | 326 connect(help, SIGNAL(triggered()), this, SLOT(showHelp())); |
332 connect(about, SIGNAL(triggered()), this, SLOT(showAbout())); | 327 connect(about, SIGNAL(triggered()), this, SLOT(showAbout())); |
333 connect(quit, SIGNAL(triggered()), this, SLOT(closeApp())); | 328 connect(quit, SIGNAL(triggered()), this, SLOT(closeApp())); |
334 setMenuBar(mMenuBar); | 329 setMenuBar(mMenuBar); |
335 } | 330 } |
592 } | 587 } |
593 mCertListWidget->setItemDelegateForRow(index, certDelegate); | 588 mCertListWidget->setItemDelegateForRow(index, certDelegate); |
594 return item; | 589 return item; |
595 } | 590 } |
596 | 591 |
597 void MainWindow::showSettings() | |
598 { | |
599 qDebug() << "show settingsdialog"; | |
600 } | |
601 | |
602 void MainWindow::showStatus() | |
603 { | |
604 qDebug() << "show settingsdialog"; | |
605 StatusDialog *status = new StatusDialog(this); | |
606 status->show(); | |
607 } | |
608 | |
609 void MainWindow::showHelp() | 592 void MainWindow::showHelp() |
610 { | 593 { |
611 qDebug() << "show helpdialog"; | 594 qDebug() << "show helpdialog"; |
612 HelpDialog *help = new HelpDialog(this); | 595 HelpDialog *help = new HelpDialog(this); |
613 help->show(); | 596 help->show(); |