• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • kernel
Macros | Functions | Variables
kstyle.cpp File Reference
#include "kstyle.h"
#include "kstyle.moc"
#include <QtCore/qalgorithms.h>
#include <QtCore/QCache>
#include <QtCore/QEvent>
#include <QtCore/QVariant>
#include <QtGui/QAbstractItemView>
#include <QtGui/QApplication>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QFormLayout>
#include <QtGui/QIcon>
#include <QtGui/QLabel>
#include <QtGui/QKeyEvent>
#include <QtGui/QPainter>
#include <QtGui/QScrollBar>
#include <QtGui/QStyleOption>
#include <kcomponentdata.h>
#include <kglobal.h>
#include <kconfiggroup.h>
#include <kdebug.h>
#include <kicon.h>
#include <kiconloader.h>
#include "kglobalsettings.h"
Include dependency graph for kstyle.cpp:

Go to the source code of this file.

Macros

#define QCOORDARRLEN(x)   sizeof(x)/(sizeof(qint32)*2)
 

Functions

static QStyle::SubControl buttonPortion (const QRect &totalRect, const QPoint &pt, const QStyleOption *opt)
 
static int customStyleElement (QStyle::StyleHint type, const QString &element, QWidget *widget)
 
static int newStyleElement (const QString &element, const char *check, int &counter, QHash< QString, int > *elements)
 
static bool preceeds (const QPoint &pt, const QRect &bound, const QStyleOption *opt)
 

Variables

static const qint32 d_arrow [] ={-4,-2, 3,-2, -4,-1, 3,-1, -3,0, 2,0, -2,1, 1,1, -1,2, 0,2}
 
static const qint32 l_arrow [] ={-3,-1, -3,0, -2,-2, -2,1, -1,-3, -1,2, 0,-4, 0,3, 1,-4, 1,3}
 
static const qint32 r_arrow [] ={-2,-4, -2,3, -1,-4, -1,3, 0,-3, 0,2, 1,-2, 1,1, 2,-1, 2,0}
 
static const QStyle::StyleHint SH_KCustomStyleElement = (QStyle::StyleHint)0xff000001
 
static const qint32 u_arrow [] ={-1,-3, 0,-3, -2,-2, 1,-2, -3,-1, 2,-1, -4,0, 3,0, -4,1, 3,1}
 
static const int X_KdeBase = 0xff000000
 

Macro Definition Documentation

#define QCOORDARRLEN (   x)    sizeof(x)/(sizeof(qint32)*2)

Definition at line 78 of file kstyle.cpp.

Function Documentation

static QStyle::SubControl buttonPortion ( const QRect &  totalRect,
const QPoint &  pt,
const QStyleOption *  opt 
)
static

Definition at line 4021 of file kstyle.cpp.

static int customStyleElement ( QStyle::StyleHint  type,
const QString &  element,
QWidget *  widget 
)
inlinestatic

Definition at line 374 of file kstyle.cpp.

static int newStyleElement ( const QString &  element,
const char *  check,
int &  counter,
QHash< QString, int > *  elements 
)
inlinestatic

Definition at line 331 of file kstyle.cpp.

static bool preceeds ( const QPoint &  pt,
const QRect &  bound,
const QStyleOption *  opt 
)
static

Definition at line 4004 of file kstyle.cpp.

Variable Documentation

const qint32 d_arrow[] ={-4,-2, 3,-2, -4,-1, 3,-1, -3,0, 2,0, -2,1, 1,1, -1,2, 0,2}
static

Definition at line 75 of file kstyle.cpp.

const qint32 l_arrow[] ={-3,-1, -3,0, -2,-2, -2,1, -1,-3, -1,2, 0,-4, 0,3, 1,-4, 1,3}
static

Definition at line 76 of file kstyle.cpp.

const qint32 r_arrow[] ={-2,-4, -2,3, -1,-4, -1,3, 0,-3, 0,2, 1,-2, 1,1, 2,-1, 2,0}
static

Definition at line 77 of file kstyle.cpp.

const QStyle::StyleHint SH_KCustomStyleElement = (QStyle::StyleHint)0xff000001
static

Definition at line 101 of file kstyle.cpp.

const qint32 u_arrow[] ={-1,-3, 0,-3, -2,-2, 1,-2, -3,-1, 2,-1, -4,0, 3,0, -4,1, 3,1}
static

KStyle for KDE4 Copyright (C) 2004-2005 Maksim Orlovich maksi.nosp@m.m@kd.nosp@m.e.org Copyright (C) 2005,2006 Sandro Giessl giess.nosp@m.l@kd.nosp@m.e.org

Based in part on the following software: KStyle for KDE3 Copyright (C) 2001-2002 Karol Szwed galli.nosp@m.um@k.nosp@m.de.or.nosp@m.g Portions (C) 1998-2000 TrollTech AS Keramik for KDE3, Copyright (C) 2002 Malte Starostik malte.nosp@m.@kde.nosp@m..org (C) 2002-2003 Maksim Orlovich maksi.nosp@m.m@kd.nosp@m.e.org Portions (C) 2001-2002 Karol Szwed galli.nosp@m.um@k.nosp@m.de.or.nosp@m.g (C) 2001-2002 Fredrik Höglund fredr.nosp@m.ik@k.nosp@m.de.or.nosp@m.g (C) 2000 Daniel M. Duley mosfe.nosp@m.t@kd.nosp@m.e.org (C) 2000 Dirk Mueller muell.nosp@m.er@k.nosp@m.de.or.nosp@m.g (C) 2001 Martijn Klingens kling.nosp@m.ens@.nosp@m.kde.o.nosp@m.rg (C) 2003 Sandro Giessl sandr.nosp@m.o@gi.nosp@m.essl..nosp@m.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

Many thanks to Bradley T. Hughes for the 3 button scrollbar code.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition at line 74 of file kstyle.cpp.

const int X_KdeBase = 0xff000000
static

Definition at line 102 of file kstyle.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal