summaryrefslogtreecommitdiffabout
path: root/microkde/kglobalsettings.cpp
blob: 2fff8fcef20a461e124e7c439362a34d14666430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "kglobalsettings.h"
#include "kconfig.h"
#include "kglobal.h"
#include "kconfigbase.h"

#include <qapplication.h>

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);
}