summaryrefslogtreecommitdiff
path: root/library
Side-by-side diff
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/config.cpp12
-rw-r--r--library/config.h5
-rw-r--r--library/datebookmonth.cpp12
-rw-r--r--library/datebookmonth.h15
-rw-r--r--library/qpemenubar.cpp9
-rw-r--r--library/qpemenubar.h7
6 files changed, 59 insertions, 1 deletions
diff --git a/library/config.cpp b/library/config.cpp
index 1121cd4..b47c620 100644
--- a/library/config.cpp
+++ b/library/config.cpp
@@ -104,2 +104,14 @@ Config::Config( const QString &name, Domain domain )
+
+// Sharp ROM compatibility
+Config::Config ( const QString &name, bool what )
+ : filename( configFilename(name,what ? User : File) )
+{
+ git = groups.end();
+ read();
+ QStringList l = Global::languageList();
+ lang = l[0];
+ glang = l[1];
+}
+
/*!
diff --git a/library/config.h b/library/config.h
index 1dc32fa..0bab7ca 100644
--- a/library/config.h
+++ b/library/config.h
@@ -37,3 +37,3 @@ public:
~Config();
-
+
bool operator == ( const Config & other ) const { return (filename == other.filename); }
@@ -86,2 +86,5 @@ protected:
static QString configFilename(const QString& name, Domain);
+
+private: // Sharp ROM compatibility
+ Config( const QString &name, bool what );
};
diff --git a/library/datebookmonth.cpp b/library/datebookmonth.cpp
index 4a9dcbd..e8be313 100644
--- a/library/datebookmonth.cpp
+++ b/library/datebookmonth.cpp
@@ -750 +750,13 @@ bool DateButton::customWhatsThis() const
+
+// this class is only here for Sharp ROM compatibility
+// I have reverse engineered this class and it seems to
+// work (only qtmail seems to use it) - sandman
+// DO NOT USE IT IN NEW CODE !!
+
+DateBookMonthPopup::DateBookMonthPopup ( QWidget *w )
+ : QPopupMenu ( w )
+{
+ m_dbm = new DateBookMonth( this, 0, TRUE );
+ insertItem( m_dbm );
+}
diff --git a/library/datebookmonth.h b/library/datebookmonth.h
index 3c57c19..cb436a8 100644
--- a/library/datebookmonth.h
+++ b/library/datebookmonth.h
@@ -30,2 +30,3 @@
#include <qpushbutton.h>
+#include <qpopupmenu.h>
@@ -211,2 +212,16 @@ private:
+// this class is only here for Sharp ROM compatibility
+// I have reverse engineered this class and it seems to
+// work (only qtmail seems to use it) - sandman
+// DO NOT USE IT IN NEW CODE !!
+
+class DateBookMonthPopup : public QPopupMenu
+{
+ Q_OBJECT
+public:
+ DateBookMonthPopup ( QWidget *w );
+
+private:
+ DateBookMonth *m_dbm;
+};
diff --git a/library/qpemenubar.cpp b/library/qpemenubar.cpp
index c658d10..4aa0bf3 100644
--- a/library/qpemenubar.cpp
+++ b/library/qpemenubar.cpp
@@ -46,2 +46,11 @@ public:
+// Sharp ROM compatibility
+void QPEMenuToolFocusManager::setMenukeyEnabled ( bool )
+{
+}
+int QPEMenuBar::getOldFocus ( )
+{
+ return 0;
+}
+
QPEMenuToolFocusManager *QPEMenuToolFocusManager::me = 0;
diff --git a/library/qpemenubar.h b/library/qpemenubar.h
index 05abc4e..66d0c85 100644
--- a/library/qpemenubar.h
+++ b/library/qpemenubar.h
@@ -55,2 +55,5 @@ private:
static QPEMenuToolFocusManager *me;
+
+private: // Sharp ROM compatibility
+ void setMenukeyEnabled ( bool b );
};
@@ -74,2 +77,6 @@ protected:
void goodbye();
+
+ // This is a special "lineo" add-on for the Sharp ROM
+ // nobody knows, what it does, though ...
+ int getOldFocus ( );
};