diff options
author | Vlad Voicu <vladvoic@gmail.com> | 2011-05-23 07:59:41 (GMT) |
---|---|---|
committer | Vlad Voicu <vladvoic@gmail.com> | 2011-05-23 20:01:27 (GMT) |
commit | 8fe56244a23cd13ba9bafc439b1e502dfd3f82df (patch) | |
tree | e8a080107800b6421acb04148629fd31d4f6bd6b | |
parent | aabbaf8495e105951a1a1c7f7f487fb8d03d2627 (diff) | |
download | swift-contrib-8fe56244a23cd13ba9bafc439b1e502dfd3f82df.zip swift-contrib-8fe56244a23cd13ba9bafc439b1e502dfd3f82df.tar.bz2 |
added View History in main menu
-rw-r--r-- | Swift/QtUI/QtMainWindow.cpp | 3 | ||||
-rw-r--r-- | Swift/QtUI/QtMainWindow.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp index 0c959d6..4d97ee9 100644 --- a/Swift/QtUI/QtMainWindow.cpp +++ b/Swift/QtUI/QtMainWindow.cpp @@ -87,8 +87,11 @@ QtMainWindow::QtMainWindow(QtSettingsProvider* settings, UIEventStream* uiEventS showOfflineAction_ = new QAction(tr("&Show offline contacts"), this); showOfflineAction_->setCheckable(true); showOfflineAction_->setChecked(false); + viewHistoryAction_ = new QAction(tr("&View History"), this); connect(showOfflineAction_, SIGNAL(toggled(bool)), SLOT(handleShowOfflineToggled(bool))); + // TODO add action for the View History Button viewMenu->addAction(showOfflineAction_); + viewMenu->addAction(viewHistoryAction_); QMenu* actionsMenu = new QMenu(tr("&Actions"), this); menus_.push_back(actionsMenu); diff --git a/Swift/QtUI/QtMainWindow.h b/Swift/QtUI/QtMainWindow.h index 5c29f6d..24dd849 100644 --- a/Swift/QtUI/QtMainWindow.h +++ b/Swift/QtUI/QtMainWindow.h @@ -71,6 +71,7 @@ namespace Swift { QAction* editUserAction_; QAction* chatUserAction_; QAction* showOfflineAction_; + QAction* viewHistoryAction_; QMenu* serverAdHocMenu_; QtTabWidget* tabs_; QWidget* contactsTabWidget_; |