summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
index a226258..9473ba9 100644
--- a/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
+++ b/noncore/apps/opie-gutenbrowser/gutenbrowserData.cpp
@@ -15,4 +15,5 @@
//#include "gutenbrowserData.h"
#include "gutenbrowser.h"
+#include "multiline_ex.h"
/* OPIE */
@@ -62,5 +63,5 @@ void Gutenbrowser::initConfig() {
}
- // odebug << "init file is " << iniFile << "" << oendl;
+ qDebug("init file is " + iniFile );;
#ifdef Q_WS_QWS
@@ -152,7 +153,7 @@ void Gutenbrowser::initConfig() {
if(qExit=="TRUE") {
b_queryExit=TRUE;
-// odebug << "Please query before leaving the library." << oendl;
+qDebug("lease query before leaving the library.");;
} else {
-// odebug << "Please DO NOT query before leaving the library." << oendl;
+ qDebug("Please DO NOT query before leaving the library.");
b_queryExit=FALSE;
}
@@ -166,5 +167,5 @@ void Gutenbrowser::initConfig() {
void Gutenbrowser::initMenuBar()
{
-// odebug << "Starting menu init." << oendl;
+ qDebug("Starting menu init.");
// menuBar entry fileMenu
menubar = new QPEMenuBar(this);
@@ -212,9 +213,8 @@ void Gutenbrowser::initMenuBar()
void Gutenbrowser::initButtonBar()
{
-//odebug << "Starting buttonbar init." << oendl;
+ qDebug("Starting buttonbar init.");
OpenButton = new QPushButton( this, "OpenButton" );
OpenButton->setFocusPolicy( QWidget::TabFocus );
-
LibraryButton = new QPushButton( this, "LibraryButton" );
LibraryButton->setFocusPolicy( QWidget::TabFocus );
@@ -246,5 +246,4 @@ void Gutenbrowser::initButtonBar()
InfoBar = new QPushButton( this, "Info_Bar" );
-// odebug << "Infobar" << oendl;
// if(!useSplitter) {
@@ -263,5 +262,4 @@ void Gutenbrowser::initButtonBar()
topLayout->setSpacing(0);
topLayout->addLayout( buttons2,0);
-
}
@@ -269,4 +267,5 @@ void Gutenbrowser::initButtonBar()
void Gutenbrowser::initStatusBar()
{
+ qDebug("statusbar");
// #ifndef Q_WS_QWS
@@ -281,10 +280,9 @@ void Gutenbrowser::initView()
// QFont defaultFont( "charter", 10, 50, 0 );
Lview = new MultiLine_Ex(this);
-
Config cfg("Gutenbrowser");
cfg.setGroup("Font");
FontDatabase fdb;
- QFont defaultFont=Lview->font();
+ QFont defaultFont = Lview->font();
QFontInfo fontInfo(defaultFont);
@@ -296,8 +294,8 @@ void Gutenbrowser::initView()
defaultFont = fdb.font(family,style,i_size,charSet);
- QString italic=cfg.readEntry("Italic","FALSE");
+ QString italic = cfg.readEntry("Italic","FALSE");
if(italic=="TRUE") {
- odebug << "Set Italic font" << oendl;
- defaultFont = fdb.font(family,"Regular",i_size,charSet); //workaround
+ qDebug("Set Italic font");;
+ defaultFont = fdb.font( family, "Regular", i_size,charSet); //workaround
defaultFont.setItalic(TRUE);
}
@@ -313,5 +311,5 @@ void Gutenbrowser::initView()
} else {
Lview->setWordWrap(QMultiLineEdit::NoWrap);
- useWrap=false;
+ useWrap = false;
}
mainList = new QListBox(this,"mainlist");
@@ -330,3 +328,4 @@ void Gutenbrowser::initView()
topLayout->addLayout( edits, 0);
+ qDebug("end initView");
}