overrode menus

This commit is contained in:
itsmattkc
2019-03-16 22:27:57 +11:00
parent d5c488867f
commit 791bc0c9b8
24 changed files with 172 additions and 86 deletions
+10
View File
@@ -24,6 +24,7 @@
#include <QFileDialog>
#include <QAction>
#include <QApplication>
#include <QStyleFactory>
#include <QDebug>
#include "panels/panels.h"
@@ -141,6 +142,15 @@ void OliveGlobal::load_translation_from_config() {
}
}
void OliveGlobal::SetNativeStyling(QWidget *w)
{
#ifdef Q_OS_WIN
w->setStyleSheet("");
w->setPalette(w->style()->standardPalette());
w->setStyle(QStyleFactory::create("windowsvista"));
#endif
}
void OliveGlobal::new_project() {
if (can_close_project()) {
// clear graph editor