]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qpe-vexed/files/vit.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qpe-vexed / files / vit.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- qpe-vexed_arm/mainWidget.cpp~vit
7 +++ qpe-vexed_arm/mainWidget.cpp
8 @@ -24,7 +24,7 @@
9  #include <qhbox.h>
10  #include <qpe/qpeapplication.h>
11  
12 -MainWidget::MainWidget(QWidget *parent, const char *name) : QWidget(parent, name) {
13 +MainWidget::MainWidget(QWidget *parent, const char *name, WFlags f) : QMainWindow(parent, name, f) {
14      this -> setBackgroundMode(PaletteButton);
15      this -> setCaption("QPE-Vexed");
16  
17 --- qpe-vexed_arm/mainWidget.h~vit
18 +++ qpe-vexed_arm/mainWidget.h
19 @@ -28,7 +28,7 @@
20  #include "level.h"
21  #include "statuslabel.h"
22  
23 -#include <qwidget.h>
24 +#include <qmainwindow.h>
25  #include <qstring.h>
26  
27  /*
28 @@ -36,10 +36,11 @@
29   * Handles allmost all signals
30   */
31  
32 -class MainWidget : public QWidget {
33 +class MainWidget : public QMainWindow {
34      Q_OBJECT
35      public:
36 -       MainWidget(QWidget *parent = NULL, const char *name = NULL);
37 +       static QString appName() { return QString::fromLatin1("qpevexed"); }    
38 +       MainWidget(QWidget *parent = NULL, const char *name = NULL, WFlags f = 0);
39         ~MainWidget();
40      protected:
41         void keyPressEvent(QKeyEvent*);
42 --- qpe-vexed_arm/qpeVexed.cpp~vit
43 +++ qpe-vexed_arm/qpeVexed.cpp
44 @@ -18,15 +18,8 @@
45   *
46   */
47  
48 -#include <qpe/qpeapplication.h>
49  #include "mainWidget.h"
50 +#include <opie2/oapplicationfactory.h>
51  
52 -int main(int argc, char **argv) {
53 -    QPEApplication a(argc, argv);
54 -
55 -    MainWidget mw;
56 -
57 -    a.setMainWidget(&mw);
58 -    mw.show();
59 -    a.exec();
60 -}
61 +using namespace Opie::Core;
62 +OPIE_EXPORT_APP( OApplicationFactory<MainWidget> )
63 --- qpe-vexed_arm/statuslabel.cpp~vit
64 +++ qpe-vexed_arm/statuslabel.cpp
65 @@ -32,6 +32,6 @@
66  StatusLabel::~StatusLabel() {}
67  
68  void StatusLabel::setLabel(const QString& pack, const QString& name, int num) {
69 -    QString s = QString::number(num);
70 +    QString s = QString::number(num+1);
71      setText(pack+" ("+s+"):\n\t"+name);
72  }
73 --- qpe-vexed_arm/qpe-vexed.pro~vit
74 +++ qpe-vexed_arm/qpe-vexed.pro
75 @@ -5,6 +5,6 @@
76  SOURCES                = button.cpp fileiface.cpp level.cpp mainWidget.cpp menuBar.cpp playingBoard.cpp qpeVexed.cpp stone.cpp about.cpp statuslabel.cpp instruction.cpp
77  INCLUDEPATH    += $(QPEDIR)/include
78  DEPENDPATH     += $(QPEDIR)/include
79 -LIBS            += -lqpe -lqte
80 +LIBS            += -lqpe -lqte -lopiecore2
81  #INTERFACES    = board_designed.ui
82  TARGET         = qpe-vexed