mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 10:26:31 +02:00
Cleaning up unused stuff
This commit is contained in:
parent
08d60c6a01
commit
e7b8efc2d9
7 changed files with 11 additions and 22 deletions
Binary file not shown.
Before Width: | Height: | Size: 253 B |
Binary file not shown.
Before Width: | Height: | Size: 254 B |
Binary file not shown.
Before Width: | Height: | Size: 257 B |
Binary file not shown.
Before Width: | Height: | Size: 224 B |
|
@ -78,27 +78,6 @@ void MessageDialog::click(StandardButton button) {
|
|||
// FIXME try to do it more like the standard dialog
|
||||
click(StandardButton(button), ButtonRole::NoRole);
|
||||
}
|
||||
QMessageBox::ButtonRole br;
|
||||
|
||||
QUrl MessageDialog::standardIconSource() {
|
||||
switch (icon()) {
|
||||
case Information:
|
||||
return QUrl("images/information.png");
|
||||
break;
|
||||
case Warning:
|
||||
return QUrl("images/warning.png");
|
||||
break;
|
||||
case Critical:
|
||||
return QUrl("images/critical.png");
|
||||
break;
|
||||
case Question:
|
||||
return QUrl("images/question.png");
|
||||
break;
|
||||
default:
|
||||
return QUrl();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
MessageDialog::StandardButtons MessageDialog::standardButtons() const {
|
||||
return _buttons;
|
||||
|
|
|
@ -25,7 +25,6 @@ private:
|
|||
Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged)
|
||||
Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged)
|
||||
Q_PROPERTY(Icon icon READ icon WRITE setIcon NOTIFY iconChanged)
|
||||
Q_PROPERTY(QUrl standardIconSource READ standardIconSource NOTIFY iconChanged)
|
||||
Q_PROPERTY(StandardButtons standardButtons READ standardButtons WRITE setStandardButtons NOTIFY standardButtonsChanged)
|
||||
Q_PROPERTY(StandardButton clickedButton READ clickedButton NOTIFY buttonClicked)
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <QOpenGLDebugLogger>
|
||||
#include <QOpenGLFunctions>
|
||||
#include <QQmlContext>
|
||||
#include <QtQml/QQmlApplicationEngine>
|
||||
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
|
@ -325,6 +326,16 @@ const char * LOG_FILTER_RULES = R"V0G0N(
|
|||
qt.quick.mouse.debug=false
|
||||
)V0G0N";
|
||||
|
||||
//int main(int argc, char *argv[]) {
|
||||
// QGuiApplication app(argc, argv);
|
||||
// QQmlApplicationEngine engine;
|
||||
// engine.setBaseUrl(QUrl::fromLocalFile(getQmlDir()));
|
||||
// engine.load(QUrl("Main.qml"));
|
||||
// return app.exec();
|
||||
//}
|
||||
|
||||
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
QGuiApplication app(argc, argv);
|
||||
// QLoggingCategory::setFilterRules(LOG_FILTER_RULES);
|
||||
|
|
Loading…
Reference in a new issue