summaryrefslogtreecommitdiff
path: root/library
authorllornkcor <llornkcor>2004-04-25 08:49:01 (UTC)
committer llornkcor <llornkcor>2004-04-25 08:49:01 (UTC)
commitea4380df897798cf4bbadaf786868a18b3dee975 (patch) (side-by-side diff)
tree14838fcf9c381d4e27bd2ad4bb2c0b759cad12b7 /library
parentfc1f0001f53f57b625f337a68532984959e6d8dd (diff)
downloadopie-ea4380df897798cf4bbadaf786868a18b3dee975.zip
opie-ea4380df897798cf4bbadaf786868a18b3dee975.tar.gz
opie-ea4380df897798cf4bbadaf786868a18b3dee975.tar.bz2
remove non needed qdebugs
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index ae1632e..5ce3011 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -285,49 +285,48 @@ static void qpe_show_dialog( QDialog* d, bool nomax )
if ( p.y() + h > maxY )
p.setY( maxY - h);
d->resize(maxX, h);
d->move(0, p.y() );
} else if ( h >= maxY ) {
if ( p.x() < 0 )
p.setX(0);
if ( p.x() + w > maxX )
p.setX( maxX - w);
d->resize(w, maxY);
d->move(p.x(),0);
} else {
d->resize(w, h);
}
d->show();
}
}
static bool read_widget_rect(const QString &app, bool &maximized, QPoint &p, QSize &s)
{
maximized = TRUE;
- qDebug("read_widget_rect");
// 350 is the trigger in qwsdefaultdecoration for providing a resize button
if ( qApp->desktop()->width() <= 350 )
return FALSE;
Config cfg( "qpe" );
cfg.setGroup("ApplicationPositions");
QString str = cfg.readEntry( app, QString::null );
QStringList l = QStringList::split(",", str);
if ( l.count() == 5) {
p.setX( l[0].toInt() );
p.setY( l[1].toInt() );
s.setWidth( l[2].toInt() );
s.setHeight( l[3].toInt() );
maximized = l[4].toInt();
return TRUE;
}
return FALSE;
}
@@ -357,49 +356,48 @@ static void qpe_show_dialog( QDialog* d, bool nomax )
}
// any smaller than this and the maximize/close/help buttons will be overlapping
if ( wWidth < 80 || wHeight < 60 )
return FALSE;
if ( p.x() < 0 )
p.setX(0);
if ( p.y() < 0 )
p.setY(0);
if ( p.x() + wWidth > maxX )
p.setX( maxX - wWidth );
if ( p.y() + wHeight > maxY )
p.setY( maxY - wHeight );
return TRUE;
}
static void store_widget_rect(QWidget *w, QString &app)
{
// 350 is the trigger in qwsdefaultdecoration for providing a resize button
if ( qApp->desktop()->width() <= 350 )
return;
- qDebug("store_widget_rect");
// we use these to map the offset of geometry and pos. ( we can only use normalGeometry to
// get the non-maximized version, so we have to do it the hard way )
int offsetX = w->x() - w->geometry().left();
int offsetY = w->y() - w->geometry().top();
QRect r;
if ( w->isMaximized() )
r = ( (HackWidget *) w)->normalGeometry();
else
r = w->geometry();
// Stores the window placement as pos(), size() (due to the offset mapping)
Config cfg( "qpe" );
cfg.setGroup("ApplicationPositions");
QString s;
s.sprintf("%d,%d,%d,%d,%d", r.left() + offsetX, r.top() + offsetY, r.width(), r.height(), w->isMaximized() );
cfg.writeEntry( app, s );
}
static bool setWidgetCaptionFromAppName( QWidget* /*mw*/, const QString& /*appName*/, const QString& /*appsPath*/ )
{
/*
// This works but disable it for now until it is safe to apply
// What is does is scan the .desktop files of all the apps for