Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 72ee7b3

Browse files
committed
Restore window frame for now
1 parent ea705a8 commit 72ee7b3

File tree

5 files changed

+126
-13
lines changed

5 files changed

+126
-13
lines changed

src/duqf-app/app-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define VERSION_MAJOR 0
55
#define VERSION_MINOR 9
6-
#define VERSION_BUILD 0
6+
#define VERSION_BUILD 1
77
#define VERSION_SUFFIX "Beta"
88

99
#define STRINGIFY_VERSION(A, B, C) CONCAT(A, B, C )

src/duqf-app/duui.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ void DuUI::buildUI(const QCommandLineParser &cli, DuSplashScreen *s)
3636
{
3737
s->newMessage("Building UI");
3838

39-
#ifdef _WIN32
39+
//#ifdef _WIN32
4040

4141
//On Windows, the widget needs to be encapsulated in a native window for frameless rendering
4242
//In this case, QWinWidget creates the mainwindow, and adds it to a layout
43-
QWinWidget *w = new QWinWidget(cli);
43+
/*QWinWidget *w = new QWinWidget(cli);
4444
4545
// Restore Geometry and state
4646
w->restoreGeometry( DuSettingsManager::instance()->uiWindowGeometry() );
4747
w->getMainWindow()->restoreState(DuSettingsManager::instance()->uiWindowState());
4848
// But hide the docks for a cleaner look
49-
//w->getMainWindow()->hideAllDocks();
50-
#else
49+
//w->getMainWindow()->hideAllDocks();*/
50+
//#else
5151
//On OS X / Linux, the widget can handle everything itself so just create Widget as normal
5252
MainWindow *w = new MainWindow( cli );
5353

@@ -56,7 +56,7 @@ void DuUI::buildUI(const QCommandLineParser &cli, DuSplashScreen *s)
5656
w->restoreState(DuSettingsManager::instance()->uiWindowState());
5757
// But hide the docks for a cleaner look
5858
//w->hideAllDocks();
59-
#endif
59+
//#endif
6060

6161
//if (!cli.isSet("no_ui"))
6262
w->show();

src/duqf-widgets/dumainwindow.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void DuMainWindow::addDockWidget(Qt::DockWidgetArea area, DuDockWidget *dockwidg
4848

4949
void DuMainWindow::setupUi()
5050
{
51-
this->setWindowIcon(QIcon(":/icons/app"));
51+
this->setWindowIcon(QIcon(APP_ICON));
5252
QMainWindow::setWindowTitle(QStringLiteral(STR_INTERNALNAME));
5353

5454
QWidget *centralWidget = new QWidget(this);
@@ -69,11 +69,10 @@ void DuMainWindow::setupToolBar()
6969
ui_mainToolBar->setProperty("osClass", "win");
7070
#elif defined(Q_OS_MAC)
7171
ui_mainToolBar->setProperty("osClass", "mac");
72-
ui_mainToolBar->installEventFilter(this);
7372
#elif defined(Q_OS_LINUX)
7473
ui_mainToolBar->setProperty("osClass", "linux");
75-
ui_mainToolBar->installEventFilter(this);
7674
#endif
75+
ui_mainToolBar->installEventFilter(this);
7776

7877
// Appearance
7978
ui_mainToolBar->setObjectName("mainToolBar");
@@ -91,9 +90,9 @@ void DuMainWindow::connectEvents()
9190
{
9291
// Window Buttons
9392
#ifdef Q_OS_WIN
94-
connect(m_minimizeAction, &QAction::triggered, this, &DuMainWindow::minimizeTriggered);
93+
/*connect(m_minimizeAction, &QAction::triggered, this, &DuMainWindow::minimizeTriggered);
9594
connect(m_maximizeAction, &QAction::triggered, this, &DuMainWindow::maximizeTriggered);
96-
connect(m_closeAction, &QAction::triggered, this, &DuMainWindow::close);
95+
connect(m_closeAction, &QAction::triggered, this, &DuMainWindow::close);*/
9796
#endif
9897
}
9998

@@ -323,7 +322,7 @@ void DuMainWindow::addWindowButtons(bool showVersion)
323322
ui_mainToolBar->addWidget(new DuToolBarSpacer());
324323

325324
#ifdef Q_OS_WIN
326-
ui_mainToolBar->addAction(m_minimizeAction);
325+
/*ui_mainToolBar->addAction(m_minimizeAction);
327326
QWidget *minWidget = ui_mainToolBar->widgetForAction(m_minimizeAction);
328327
minWidget->setFixedSize(
329328
DuUI::adjustToDpi(QSize(24,24))
@@ -345,7 +344,7 @@ void DuMainWindow::addWindowButtons(bool showVersion)
345344
DuUI::adjustToDpi(QSize(24,24))
346345
);
347346
closeWidget->setObjectName("windowButton");
348-
ui_mainToolBar->layout()->setAlignment(closeWidget, Qt::AlignTop);
347+
ui_mainToolBar->layout()->setAlignment(closeWidget, Qt::AlignTop);*/
349348

350349
#endif // WIN
351350
}

src/resources.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<file alias="more">resources/icons/more.svg</file>
8484
<file alias="settings">resources/icons/settings.svg</file>
8585
<file alias="users90">resources/icons/users90.svg</file>
86+
<file alias="app">resources/icons/ramses-icon-small.svg</file>
8687
</qresource>
8788
<qresource prefix="/styles">
8889
<file alias="console">resources/styles/console.css</file>
Lines changed: 113 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)