Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisMainWindow.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | |||||
143 | #include <KisImageConfigNotifier.h> | 143 | #include <KisImageConfigNotifier.h> | ||
144 | #include "KisWindowLayoutManager.h" | 144 | #include "KisWindowLayoutManager.h" | ||
145 | #include <KisUndoActionsUpdateManager.h> | 145 | #include <KisUndoActionsUpdateManager.h> | ||
146 | #include "KisWelcomePageWidget.h" | 146 | #include "KisWelcomePageWidget.h" | ||
147 | #include <KritaVersionWrapper.h> | 147 | #include <KritaVersionWrapper.h> | ||
148 | #include <kritaversion.h> | 148 | #include <kritaversion.h> | ||
149 | #include <mutex> | 149 | #include <mutex> | ||
150 | 150 | | |||
151 | #ifdef Q_OS_WIN | | |||
152 | #include <QtPlatformHeaders/QWindowsWindowFunctions> | | |||
153 | #endif | | |||
154 | | ||||
155 | class ToolDockerFactory : public KoDockFactoryBase | 151 | class ToolDockerFactory : public KoDockFactoryBase | ||
156 | { | 152 | { | ||
157 | public: | 153 | public: | ||
158 | ToolDockerFactory() : KoDockFactoryBase() { } | 154 | ToolDockerFactory() : KoDockFactoryBase() { } | ||
159 | 155 | | |||
160 | QString id() const override { | 156 | QString id() const override { | ||
161 | return "sharedtooldocker"; | 157 | return "sharedtooldocker"; | ||
162 | } | 158 | } | ||
▲ Show 20 Lines • Show All 340 Lines • ▼ Show 20 Line(s) | 466 | #endif | |||
503 | plugActionList("toolbarlist", toolbarList); | 499 | plugActionList("toolbarlist", toolbarList); | ||
504 | d->toolbarList = toolbarList; | 500 | d->toolbarList = toolbarList; | ||
505 | 501 | | |||
506 | applyToolBarLayout(); | 502 | applyToolBarLayout(); | ||
507 | 503 | | |||
508 | d->viewManager->updateGUI(); | 504 | d->viewManager->updateGUI(); | ||
509 | d->viewManager->updateIcons(); | 505 | d->viewManager->updateIcons(); | ||
510 | 506 | | |||
511 | #ifdef Q_OS_WIN | | |||
512 | auto w = qApp->activeWindow(); | | |||
513 | if (w) QWindowsWindowFunctions::setHasBorderInFullScreen(w->windowHandle(), true); | | |||
514 | #endif | | |||
515 | | ||||
516 | QTimer::singleShot(1000, this, SLOT(checkSanity())); | 507 | QTimer::singleShot(1000, this, SLOT(checkSanity())); | ||
517 | 508 | | |||
518 | { | 509 | { | ||
519 | using namespace std::placeholders; // For _1 placeholder | 510 | using namespace std::placeholders; // For _1 placeholder | ||
520 | std::function<void (int)> callback( | 511 | std::function<void (int)> callback( | ||
521 | std::bind(&KisMainWindow::switchTab, this, _1)); | 512 | std::bind(&KisMainWindow::switchTab, this, _1)); | ||
522 | 513 | | |||
523 | d->tabSwitchCompressor.reset( | 514 | d->tabSwitchCompressor.reset( | ||
▲ Show 20 Lines • Show All 2113 Lines • Show Last 20 Lines |