Selaa lähdekoodia

Reformatted RusificationWidget class

Ivan Arkhipov 6 vuotta sitten
vanhempi
commit
2090b2b852

+ 4 - 6
src/Legacy/widgets/rusificationwidget.cpp

@@ -1,7 +1,6 @@
-#include "gui\rusificationwidget.h"
+#include "widgets/rusificationwidget.h"
 #include "ui_rusificationwidget.h"
-#include "legacyapp.h"
-#include "rusificationtreeitem.h"
+#include "widgets/rusificationtreeitem.h"
 #include <QDebug>
 
 void doStuffWithEveryItemInMyTree( QTreeWidgetItem *item )
@@ -23,10 +22,9 @@ QTreeWidgetItem* findItemByName(QTreeWidgetItem* item, QString name) {
     return nullptr;
 }
 
-RusificationWidget::RusificationWidget(LegacyApp *_app, QWidget *parent) :
+RusificationWidget::RusificationWidget(QWidget *parent) :
     QWidget(parent),
-    ui(new Ui::RusificationWidget),
-    app(_app)
+    ui(new Ui::RusificationWidget)
 {
     ui->setupUi(this);
     setupTreeWidget();

+ 1 - 4
src/Legacy/widgets/rusificationwidget.h

@@ -9,14 +9,12 @@ namespace Ui {
 class RusificationWidget;
 }
 
-class LegacyApp;
-
 class RusificationWidget : public QWidget
 {
     Q_OBJECT
 
 public:
-    explicit RusificationWidget(LegacyApp *_app, QWidget *parent = 0);
+    explicit RusificationWidget(QWidget *parent = 0);
 
     ~RusificationWidget();
 
@@ -30,7 +28,6 @@ private slots:
 
 private:
     Ui::RusificationWidget *ui;
-    LegacyApp *app;
     QTimer ui_update_timer;
 };