@@ -599,9 +599,17 @@ bool MainWindow::setupTaskView()
|
||||
{
|
||||
// Task view
|
||||
if (d->hiddenDockWindows.find("Std_TaskView") == std::string::npos) {
|
||||
// clang-format off
|
||||
auto group = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")
|
||||
->GetGroup("DockWindows")
|
||||
->GetGroup("TaskView");
|
||||
// clang-format on
|
||||
auto taskView = new Gui::TaskView::TaskView(this);
|
||||
taskView->setObjectName
|
||||
(QString::fromLatin1(QT_TRANSLATE_NOOP("QDockWidget","Tasks")));
|
||||
bool restore = group->GetBool("RestoreWidth", taskView->shouldRestoreWidth());
|
||||
taskView->setRestoreWidth(restore);
|
||||
taskView->setObjectName(QString::fromLatin1(QT_TRANSLATE_NOOP("QDockWidget","Tasks")));
|
||||
taskView->setMinimumWidth(210);
|
||||
|
||||
DockWindowManager* pDockMgr = DockWindowManager::instance();
|
||||
|
||||
Reference in New Issue
Block a user