author | tille <tille> | 2003-09-03 15:49:42 (UTC) |
---|---|---|
committer | tille <tille> | 2003-09-03 15:49:42 (UTC) |
commit | 577cdc4f2ce81eaceb132af08d8ab6fe12b4eadc (patch) (unidiff) | |
tree | 56416720d3c76eb8be931fbc27a82a7a7c5c5967 | |
parent | 9bcca67b731d0cf3c10092ec31234d5d03cef5cd (diff) | |
download | opie-577cdc4f2ce81eaceb132af08d8ab6fe12b4eadc.zip opie-577cdc4f2ce81eaceb132af08d8ab6fe12b4eadc.tar.gz opie-577cdc4f2ce81eaceb132af08d8ab6fe12b4eadc.tar.bz2 |
libopie2fied
it was always a test app ;)
-rw-r--r-- | noncore/apps/confedit/confedit.pro | 14 | ||||
-rw-r--r-- | noncore/apps/confedit/listviewitemconf.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/confedit/main.cpp | 5 | ||||
-rw-r--r-- | noncore/apps/confedit/mainwindow.cpp | 13 |
4 files changed, 27 insertions, 14 deletions
diff --git a/noncore/apps/confedit/confedit.pro b/noncore/apps/confedit/confedit.pro index f6227f7..d2629de 100644 --- a/noncore/apps/confedit/confedit.pro +++ b/noncore/apps/confedit/confedit.pro | |||
@@ -5,10 +5,10 @@ CONFIG = qt warn_on debug | |||
5 | HEADERS = mainwindow.h listviewconfdir.h listviewitemconffile.h listviewitemconfigentry.h editwidget.h listviewitemconf.h | 5 | HEADERS = mainwindow.h listviewconfdir.h listviewitemconffile.h listviewitemconfigentry.h editwidget.h listviewitemconf.h |
6 | SOURCES = main.cpp mainwindow.cpp listviewconfdir.cpp listviewitemconffile.cpp listviewitemconfigentry.cpp editwidget.cpp listviewitemconf.cpp | 6 | SOURCES = main.cpp mainwindow.cpp listviewconfdir.cpp listviewitemconffile.cpp listviewitemconfigentry.cpp editwidget.cpp listviewitemconf.cpp |
7 | INCLUDEPATH += $(OPIEDIR)/include | 7 | INCLUDEPATH += $(OPIEDIR)/include |
8 | DEPENDPATH+= $(OPIEDIR)/ioclude | 8 | DEPENDPATH+= $(OPIEDIR)/ioclude |
9 | LIBS += -lqpe | ||
10 | INTERFACES= | 9 | INTERFACES= |
10 | LIBS += -lopiecore2 -lopieui2 | ||
11 | TARGET = confedit | 11 | TARGET = confedit |
12 | 12 | ||
13 | TRANSLATIONS = ../../../i18n/de/confedit.ts \ | 13 | TRANSLATIONS = ../../../i18n/de/confedit.ts \ |
14 | ../../../i18n/nl/confedit.ts \ | 14 | ../../../i18n/nl/confedit.ts \ |
@@ -28,6 +28,16 @@ TRANSLATIONS = ../../../i18n/de/confedit.ts \ | |||
28 | ../../../i18n/zh_CN/confedit.ts \ | 28 | ../../../i18n/zh_CN/confedit.ts \ |
29 | ../../../i18n/zh_TW/confedit.ts | 29 | ../../../i18n/zh_TW/confedit.ts |
30 | 30 | ||
31 | 31 | ||
32 | !contains( platform, x11 ) { | ||
33 | |||
34 | include ( $(OPIEDIR)/include.pro ) | ||
35 | LIBS += -lqpe | ||
36 | } | ||
37 | |||
38 | contains( platform, x11 ) { | ||
39 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | ||
40 | } | ||
41 | |||
42 | |||
32 | 43 | ||
33 | include ( $(OPIEDIR)/include.pro ) | ||
diff --git a/noncore/apps/confedit/listviewitemconf.cpp b/noncore/apps/confedit/listviewitemconf.cpp index 91edca2..61bd7ea 100644 --- a/noncore/apps/confedit/listviewitemconf.cpp +++ b/noncore/apps/confedit/listviewitemconf.cpp | |||
@@ -12,15 +12,15 @@ | |||
12 | ListViewItemConf::ListViewItemConf(ListViewItemConf *parent) | 12 | ListViewItemConf::ListViewItemConf(ListViewItemConf *parent) |
13 | : QListViewItem(parent), _changed(false) | 13 | : QListViewItem(parent), _changed(false) |
14 | { | 14 | { |
15 | } | 15 | } |
16 | 16 | ||
17 | ListViewItemConf::ListViewItemConf(QListView *parent) | 17 | ListViewItemConf::ListViewItemConf(QListView *parent) |
18 | : QListViewItem(parent), _changed(false) | 18 | : QListViewItem(parent), _changed(false) |
19 | { | 19 | { |
20 | _type = File; | 20 | _type = File; |
21 | } | 21 | } |
22 | 22 | ||
23 | ListViewItemConf::~ListViewItemConf() | 23 | ListViewItemConf::~ListViewItemConf() |
24 | { | 24 | { |
25 | } | 25 | } |
26 | 26 | ||
@@ -47,5 +47,8 @@ void ListViewItemConf::unchanged() | |||
47 | 47 | ||
48 | bool ListViewItemConf::revertable() | 48 | bool ListViewItemConf::revertable() |
49 | { | 49 | { |
50 | return _changed; | 50 | return _changed; |
51 | } \ No newline at end of file | 51 | } |
52 | |||
53 | |||
54 | |||
diff --git a/noncore/apps/confedit/main.cpp b/noncore/apps/confedit/main.cpp index 6c18adb..7e7f064 100644 --- a/noncore/apps/confedit/main.cpp +++ b/noncore/apps/confedit/main.cpp | |||
@@ -1,13 +1,12 @@ | |||
1 | 1 | ||
2 | #include "mainwindow.h" | 2 | #include "mainwindow.h" |
3 | 3 | ||
4 | #include <qpe/qpeapplication.h> | 4 | #include <opie2/oapplication.h> |
5 | 5 | ||
6 | int main( int argc, char ** argv ) | 6 | int main( int argc, char ** argv ) |
7 | { | 7 | { |
8 | 8 | OApplication a( argc, argv, "confedit" ); | |
9 | QPEApplication a( argc, argv ); | ||
10 | MainWindow mw; | 9 | MainWindow mw; |
11 | mw.showMaximized(); | 10 | mw.showMaximized(); |
12 | a.showMainDocumentWidget( &mw ); | 11 | a.showMainDocumentWidget( &mw ); |
13 | return a.exec(); | 12 | return a.exec(); |
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp index 8e36980..58538af 100644 --- a/noncore/apps/confedit/mainwindow.cpp +++ b/noncore/apps/confedit/mainwindow.cpp | |||
@@ -11,14 +11,14 @@ | |||
11 | 11 | ||
12 | 12 | ||
13 | #include "mainwindow.h" | 13 | #include "mainwindow.h" |
14 | 14 | ||
15 | #include <qpe/qpemenubar.h> | 15 | #include <opie2/omenubar.h> |
16 | #include <qpe/qpemessagebox.h> | 16 | #include <opie2/omessagebox.h> |
17 | #include <qpe/resource.h> | 17 | #include <opie2/oresource.h> |
18 | #include <qpe/config.h> | 18 | #include <opie2/oconfig.h> |
19 | #include <qpe/qpetoolbar.h> | 19 | #include <opie2/otoolbar.h> |
20 | #include <qpe/qpeapplication.h> | 20 | #include <opie2/oapplication.h> |
21 | #include <qaction.h> | 21 | #include <qaction.h> |
22 | #include <qmessagebox.h> | 22 | #include <qmessagebox.h> |
23 | #include <qpopupmenu.h> | 23 | #include <qpopupmenu.h> |
24 | #include <qtoolbutton.h> | 24 | #include <qtoolbutton.h> |
@@ -27,8 +27,9 @@ | |||
27 | #include <qfile.h> | 27 | #include <qfile.h> |
28 | #include <qpushbutton.h> | 28 | #include <qpushbutton.h> |
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qlineedit.h> | 30 | #include <qlineedit.h> |
31 | #include <qcursor.h> | ||
31 | 32 | ||
32 | #include "listviewconfdir.h" | 33 | #include "listviewconfdir.h" |
33 | #include "listviewitemconf.h" | 34 | #include "listviewitemconf.h" |
34 | #include "listviewitemconfigentry.h" | 35 | #include "listviewitemconfigentry.h" |