Add branch for Version 1.5 (because it seems to work better than newer versions)
This commit is contained in:
@@ -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