[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdepim/kresources/kolab/kcal
From: Till Adam <adam () kde ! org>
Date: 2006-05-21 14:37:50
Message-ID: 1148222270.355404.5503.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 543187 by tilladam:
Forward port of:
Non-gui config key that allows to specify after how many
incidences a progress dialog comes up. (proko2 issue 1118)
M +3 -1 resourcekolab.cpp
M +1 -0 resourcekolab.h
--- branches/KDE/3.5/kdepim/kresources/kolab/kcal/resourcekolab.cpp #543186:543187
@@ -116,6 +116,8 @@
mOpen = true;
KConfig config( configFile() );
+ config.setGroup( "General" );
+ mProgressDialogIncidenceLimit = \
config.readNumEntry("ProgressDialogIncidenceLimit", 200);
return openResource( config, kmailCalendarContentsType, mEventSubResources )
&& openResource( config, kmailTodoContentsType, mTodoSubResources )
@@ -161,7 +163,7 @@
const QString labelTxt = !strcmp(mimetype, "application/x-vnd.kolab.task") ? i18n( \
"Loading tasks..." )
: !strcmp(mimetype, "application/x-vnd.kolab.journal") ? \
i18n( "Loading journals..." ) : i18n( "Loading events..." );
- const bool useProgress = qApp && qApp->type() != QApplication::Tty && count > 200;
+ const bool useProgress = qApp && qApp->type() != QApplication::Tty && count > \
mProgressDialogIncidenceLimit; if ( useProgress )
(void)::Observer::self(); // ensure kio_uiserver is running
UIServer_stub uiserver( "kio_uiserver", "UIServer" );
--- branches/KDE/3.5/kdepim/kresources/kolab/kcal/resourcekolab.h #543186:543187
@@ -198,6 +198,7 @@
We can't trust on mUidMap here, because it contains only non-pending uids.
*/
QMap<QString, QString> mNewIncidencesMap;
+ int mProgressDialogIncidenceLimit;
};
struct TemporarySilencer {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic