summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladvoic@gmail.com>2011-05-23 07:59:41 (GMT)
committerVlad Voicu <vladvoic@gmail.com>2011-05-31 18:34:02 (GMT)
commit16474cfa1714e4e945ea5744317bcc191929f61f (patch)
treee8a080107800b6421acb04148629fd31d4f6bd6b /Swift/QtUI
parent6db4218b22cb5c367751d2050e0c50f1559024a2 (diff)
downloadswift-contrib-16474cfa1714e4e945ea5744317bcc191929f61f.zip
swift-contrib-16474cfa1714e4e945ea5744317bcc191929f61f.tar.bz2
added View History in main menu
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtMainWindow.cpp3
-rw-r--r--Swift/QtUI/QtMainWindow.h1
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_;