From f72e2ce05812bd1eb21c9dedc444610d52848ef2 Mon Sep 17 00:00:00 2001 From: Yozka Date: Fri, 25 Jan 2019 08:56:30 +0500 Subject: [PATCH] Added demo example tooltip for calendar dockWidget #20 --- demo/MainWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index e547916..0c02873 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -125,9 +125,9 @@ struct MainWindowPrivate { CMainWindow* _this; Ui::MainWindow ui; - QAction* SavePerspectiveAction = nullptr; + QAction* SavePerspectiveAction = nullptr; QWidgetAction* PerspectiveListAction = nullptr; - QComboBox* PerspectiveComboBox = nullptr;; + QComboBox* PerspectiveComboBox = nullptr; ads::CDockManager* DockManager = nullptr; MainWindowPrivate(CMainWindow* _public) : _this(_public) {} @@ -188,7 +188,8 @@ void MainWindowPrivate::createContent() auto TopDockArea = DockManager->addDockWidget(ads::TopDockWidgetArea, FileSystemWidget); DockWidget = createCalendarDockWidget(ViewMenu); DockWidget->setFeature(ads::CDockWidget::DockWidgetClosable, false); - DockManager->addDockWidget(ads::CenterDockWidgetArea, DockWidget, TopDockArea); + DockWidget->setTabToolTip(QString("Tab ToolTip\nHodie est dies magna")); + DockManager->addDockWidget(ads::CenterDockWidgetArea, DockWidget, TopDockArea); // Test dock area docking auto RighDockArea = DockManager->addDockWidget(ads::RightDockWidgetArea, createLongTextLabelDockWidget(ViewMenu), TopDockArea);