Added demo example tooltip for calendar dockWidget #20

This commit is contained in:
Yozka 2019-01-25 08:56:30 +05:00
parent befdcce343
commit f72e2ce058

View File

@ -127,7 +127,7 @@ struct MainWindowPrivate
Ui::MainWindow ui; Ui::MainWindow ui;
QAction* SavePerspectiveAction = nullptr; QAction* SavePerspectiveAction = nullptr;
QWidgetAction* PerspectiveListAction = nullptr; QWidgetAction* PerspectiveListAction = nullptr;
QComboBox* PerspectiveComboBox = nullptr;; QComboBox* PerspectiveComboBox = nullptr;
ads::CDockManager* DockManager = nullptr; ads::CDockManager* DockManager = nullptr;
MainWindowPrivate(CMainWindow* _public) : _this(_public) {} MainWindowPrivate(CMainWindow* _public) : _this(_public) {}
@ -188,6 +188,7 @@ void MainWindowPrivate::createContent()
auto TopDockArea = DockManager->addDockWidget(ads::TopDockWidgetArea, FileSystemWidget); auto TopDockArea = DockManager->addDockWidget(ads::TopDockWidgetArea, FileSystemWidget);
DockWidget = createCalendarDockWidget(ViewMenu); DockWidget = createCalendarDockWidget(ViewMenu);
DockWidget->setFeature(ads::CDockWidget::DockWidgetClosable, false); DockWidget->setFeature(ads::CDockWidget::DockWidgetClosable, false);
DockWidget->setTabToolTip(QString("Tab ToolTip\nHodie est dies magna"));
DockManager->addDockWidget(ads::CenterDockWidgetArea, DockWidget, TopDockArea); DockManager->addDockWidget(ads::CenterDockWidgetArea, DockWidget, TopDockArea);
// Test dock area docking // Test dock area docking