Commit 9d0cae8e authored by Ramon Buldó's avatar Ramon Buldó

cleanup

parent e83f2fa6
Main developers:
Roland Singer <roland@manjaro.org>
Ramon Buldó <rbuldo@gmail.com>
......@@ -12,54 +12,54 @@ LIBS += -lmhwd
TARGET = manjaro-settings-manager-gui
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
widgets/toolbarstylewidget.cpp \
widgets/listwidget.cpp \
pages/page_languagepackages.cpp \
widgets/pagewidget.cpp \
dialogs/applydialog.cpp \
pages/page_keyboard.cpp \
widgets/keyboardpreview.cpp \
pages/page_language.cpp \
widgets/selectlocalesdialog.cpp \
pages/page_users.cpp \
widgets/flatbutton.cpp \
dialogs/adduserdialog.cpp \
dialogs/changepassworddialog.cpp \
dialogs/accounttypedialog.cpp \
dialogs/previewfiledialog.cpp \
pages/page_gpudriver.cpp
SOURCES += main.cpp \
mainwindow.cpp \
dialogs/accounttypedialog.cpp \
dialogs/adduserdialog.cpp \
dialogs/applydialog.cpp \
dialogs/changepassworddialog.cpp \
dialogs/previewfiledialog.cpp \
pages/page_gpudriver.cpp \
pages/page_language.cpp \
pages/page_languagepackages.cpp \
pages/page_keyboard.cpp \
pages/page_users.cpp \
widgets/flatbutton.cpp \
widgets/listwidget.cpp \
widgets/keyboardpreview.cpp \
widgets/pagewidget.cpp \
widgets/selectlocalesdialog.cpp \
widgets/toolbarstylewidget.cpp
HEADERS += mainwindow.h \
widgets/toolbarstylewidget.h \
widgets/listwidget.h \
pages/page_languagepackages.h \
widgets/pagewidget.h \
dialogs/applydialog.h \
pages/page_keyboard.h \
widgets/keyboardpreview.h \
pages/page_language.h \
widgets/selectlocalesdialog.h \
pages/page_users.h \
widgets/flatbutton.h \
dialogs/adduserdialog.h \
dialogs/changepassworddialog.h \
dialogs/accounttypedialog.h \
dialogs/previewfiledialog.h \
pages/page_gpudriver.h
dialogs/accounttypedialog.h \
dialogs/adduserdialog.h \
dialogs/applydialog.h \
dialogs/changepassworddialog.h \
dialogs/previewfiledialog.h \
pages/page_gpudriver.h \
pages/page_language.h \
pages/page_languagepackages.h \
pages/page_keyboard.h \
pages/page_users.h \
widgets/flatbutton.h \
widgets/listwidget.h \
widgets/keyboardpreview.h \
widgets/pagewidget.h \
widgets/selectlocalesdialog.h \
widgets/toolbarstylewidget.h \
FORMS += mainwindow.ui \
pages/page_languagepackages.ui \
dialogs/applydialog.ui \
pages/page_keyboard.ui \
pages/page_language.ui \
widgets/selectlocalesdialog.ui \
pages/page_users.ui \
dialogs/adduserdialog.ui \
dialogs/changepassworddialog.ui \
dialogs/accounttypedialog.ui \
pages/page_gpudriver.ui
dialogs/adduserdialog.ui \
dialogs/accounttypedialog.ui \
dialogs/applydialog.ui \
dialogs/changepassworddialog.ui \
pages/page_gpudriver.ui \
pages/page_language.ui \
pages/page_keyboard.ui \
pages/page_languagepackages.ui \
pages/page_users.ui \
widgets/selectlocalesdialog.ui
TRANSLATIONS += translations/msm_ast.ts \
translations/msm_ca.ts \
......
/*
* Manjaro Installation Framework
* Manjaro Settings Manager
* Roland Singer <roland@manjaro.org>
* Ramon Buldó <rbuldo@gmail.com>
*
* Copyright (C) 2007 Free Software Foundation, Inc.
*
......@@ -168,8 +169,9 @@ void Page_GPUDriver::installAction_triggered() {
reply = QMessageBox::question(this,
tr("Install Configuration"),
tr("Do you really want to install\n%1?").arg(temp->text(0)),
QMessageBox::Ok|QMessageBox::Cancel);
if (reply == QMessageBox::Ok) {
QMessageBox::Ok | QMessageBox::Cancel);
if (reply == QMessageBox::Ok)
{
ApplyDialog dialog(this);
dialog.exec("mhwd", QStringList() << "-i" << "pci" << temp->text(0), tr("Installing driver..."), false);
}
......@@ -181,8 +183,9 @@ void Page_GPUDriver::removeAction_triggered() {
reply = QMessageBox::question(this,
tr("Remove Configuration"),
tr("Do you really want to remove\n%1?").arg(temp->text(0)),
QMessageBox::Ok|QMessageBox::Cancel);
if (reply == QMessageBox::Ok) {
QMessageBox::Ok | QMessageBox::Cancel);
if (reply == QMessageBox::Ok)
{
ApplyDialog dialog(this);
dialog.exec("mhwd", QStringList() << "-r" << "pci" << temp->text(0), tr("Removing driver..."), false);
}
......@@ -194,8 +197,9 @@ void Page_GPUDriver::forceReinstallationAction_triggered() {
reply = QMessageBox::question(this,
tr("Force Reinstallation"),
tr("Do you really want to force reinstall\n%1?").arg(temp->text(0)),
QMessageBox::Ok|QMessageBox::Cancel);
if (reply == QMessageBox::Ok) {
QMessageBox::Ok | QMessageBox::Cancel);
if (reply == QMessageBox::Ok)
{
ApplyDialog dialog(this);
dialog.exec("mhwd", QStringList() << "-f" << "-i" << "pci" << temp->text(0), tr("Reinstalling driver..."), false);
}
......
/*
* Manjaro Installation Framework
* Manjaro Settings Manager
* Roland Singer <roland@manjaro.org>
* Ramon Buldó <rbuldo@gmail.com>
*
* Copyright (C) 2007 Free Software Foundation, Inc.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment