From b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 26 Jun 2004 19:01:18 +0000 Subject: Initial revision --- (limited to 'microkde/kglobalsettings.cpp') diff --git a/microkde/kglobalsettings.cpp b/microkde/kglobalsettings.cpp new file mode 100644 index 0000000..2fff8fc --- a/dev/null +++ b/microkde/kglobalsettings.cpp @@ -0,0 +1,41 @@ +#include "kglobalsettings.h" +#include "kconfig.h" +#include "kglobal.h" +#include "kconfigbase.h" + +#include + +QFont KGlobalSettings::generalFont() +{ + int size = 12; + if (QApplication::desktop()->width() < 480 ) + size = 10; + return QFont("helvetica",size); +} +QFont KGlobalSettings::toolBarFont() +{ + return QFont("helevetica",12); +} + +QColor KGlobalSettings::toolBarHighlightColor() +{ + return QColor("black"); +} + +QRect KGlobalSettings::desktopGeometry( QWidget * ) +{ + return QApplication::desktop()->rect(); +} + + /** + * Returns whether KDE runs in single (default) or double click + * mode. + * see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html + * @return true if single click mode, or false if double click mode. + **/ +bool KGlobalSettings::singleClick() +{ + KConfig *c = KGlobal::config(); + KConfigGroupSaver cgs( c, "KDE" ); + return c->readBoolEntry("SingleClick", KDE_DEFAULT_SINGLECLICK); +} -- cgit v0.9.0.2