Compare commits
2 Commits
wip/v2
...
LabMCT_KDD
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e310df8e16 | ||
|
|
f98ff4794f |
@@ -97,7 +97,7 @@ set(${PROJECT_NAME}_SOVERSION "1.5")
|
||||
|
||||
include(FeatureSummary)
|
||||
|
||||
option(${PROJECT_NAME}_QT6 "Build against Qt 6" OFF)
|
||||
option(${PROJECT_NAME}_QT6 "Build against Qt 6" ON)
|
||||
option(${PROJECT_NAME}_DEVELOPER_MODE "Developer Mode" OFF)
|
||||
option(${PROJECT_NAME}_PYTHON_BINDINGS "Build python bindings" OFF)
|
||||
option(${PROJECT_NAME}_QTQUICK "Build for QtQuick instead of QtWidgets" OFF)
|
||||
@@ -109,6 +109,10 @@ option(${PROJECT_NAME}_WERROR "Use -Werror (will be true for developer-mode unco
|
||||
option(${PROJECT_NAME}_X11EXTRAS "On Linux, link against QtX11Extras so we can detect if the compositor supports transparency. Not applicable to other platforms or Qt6." ON)
|
||||
option(${PROJECT_NAME}_XLib "On Linux, link against XLib, for a more robust window z-order detection." OFF)
|
||||
|
||||
set(${PROJECT_NAME}_QT6 ON)
|
||||
set(${PROJECT_NAME}_X11EXTRAS OFF)
|
||||
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/ECM/modules")
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/KDAB/modules")
|
||||
|
||||
@@ -106,6 +106,12 @@ MainWindow::MainWindow(const QString &name, MainWindowOptions options,
|
||||
d->m_layout->addWidget(layoutWidget());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::postInit(QWidget *parent, Qt::WindowFlags flags)
|
||||
{
|
||||
setCentralWidget(d->m_centralWidget);
|
||||
|
||||
create();
|
||||
@@ -116,6 +122,7 @@ MainWindow::MainWindow(const QString &name, MainWindowOptions options,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete d;
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
explicit MainWindow(const QString &uniqueName, MainWindowOptions options = MainWindowOption_None,
|
||||
QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
|
||||
|
||||
void postInit(QWidget *parent, Qt::WindowFlags flags = Qt::WindowFlags());
|
||||
|
||||
///@brief Destructor
|
||||
~MainWindow() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user