overrode menus
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user