summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.h
diff options
context:
space:
mode:
authorBoris Barbulovski <bbarbulovski@gmail.com>2015-09-22 20:36:15 +0200
committerMichal Marek <mmarek@suse.com>2015-10-14 14:59:02 +0200
commit68ccb7ef4974bfce0d99a4425324a1c7ef85a82e (patch)
tree23c612b886155b99429ff0b260b96efb34a57312 /scripts/kconfig/qconf.h
parentPort xconfig to Qt5 - Remove custom ListView classes. (diff)
downloadlinux-68ccb7ef4974bfce0d99a4425324a1c7ef85a82e.tar.xz
linux-68ccb7ef4974bfce0d99a4425324a1c7ef85a82e.zip
Port xconfig to Qt5 - Fix the code so it compiles with Qt5
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Thiago Macieira <thiago.macieira@intel.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/qconf.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h
index d025f29694c6..1cd02192f172 100644
--- a/scripts/kconfig/qconf.h
+++ b/scripts/kconfig/qconf.h
@@ -3,9 +3,18 @@
* Released under the terms of the GNU GPL v2.0.
*/
-#include <q3listview.h>
+#include <QTextBrowser>
+#include <QTreeWidget>
#include <QMainWindow>
+#include <QHeaderView>
#include <qsettings.h>
+#include <QPushButton>
+#include <QSettings>
+#include <QLineEdit>
+#include <QSplitter>
+#include <QCheckBox>
+#include <QDialog>
+#include "expr.h"
class ConfigView;
class ConfigLineEdit;
@@ -37,11 +46,11 @@ public:
{
return (ConfigView*)Parent::parent();
}
- void show(Q3ListViewItem *i);
+ void show(QTreeWidgetItem *i);
void keyPressEvent(QKeyEvent *e);
public:
- Q3ListViewItem *item;
+ QTreeWidgetItem *item;
};
class ConfigView : public QWidget {
@@ -50,7 +59,7 @@ class ConfigView : public QWidget {
public:
ConfigView(QWidget* parent, const char *name = 0);
~ConfigView(void);
- static void updateList(Q3ListViewItem* item);
+ static void updateList(QTreeWidgetItem* item);
static void updateListAll(void);
bool showName(void) const { return false; } // TODO: Implement me.
@@ -66,7 +75,7 @@ signals:
void showRangeChanged(bool);
void showDataChanged(bool);
public:
- Q3ListView* list;
+ QTreeWidget* list;
ConfigLineEdit* lineEdit;
static ConfigView* viewList;
@@ -155,9 +164,9 @@ protected:
ConfigSearchWindow *searchWindow;
ConfigView *menuView;
- Q3ListView *menuList;
+ QTreeWidget *menuList;
ConfigView *configView;
- Q3ListView *configList;
+ QTreeWidget *configList;
ConfigInfoView *helpText;
QToolBar *toolBar;
QAction *backAction;