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

KDEUI

  • KStyle
  • ComboBox
Public Types | List of all members
KStyle::ComboBox Struct Reference

#include <kstyle.h>

Public Types

enum  LayoutProp {
  FrameWidth , ButtonWidth , ButtonMargin , FocusMargin = ButtonMargin + MarginInc ,
  SupportFrameless = FocusMargin + MarginInc , ContentsMargin
}
 
enum  Primitive { EditField , Button }
 

Detailed Description

Describes a widget like QComboBox.

Definition at line 1159 of file kstyle.h.

Member Enumeration Documentation

◆ LayoutProp

enum KStyle::ComboBox::LayoutProp
Note
The description applies to LTR (left to right) mode.
  1. FrameWidth and ButtonWidth are used to size the contents area. To the EditField, FrameWidth is added at the left, top, bottom while ButtonWidth is added at the right.
  2. The ButtonMargin is measured from the right side of the EditField and the outside. Inside it, the button is aligned.
  3. The FocusMargin is measured from the EditField rect.
Enumerator
FrameWidth 

(1)

See also
SpinBox::FrameWidth
ButtonWidth 

(16)

See also
SpinBox::ButtonWidth
ButtonMargin 

(MainMargin 0, Right Top Bot 1)

See also
SpinBox::ButtonMargin
FocusMargin 

(1) Focus margin for ComboBoxes that aren't editable, measured from the EditField rect

SupportFrameless 

(0)

See also
LP_SpinBox_SupportFrameless same description applies here
ContentsMargin 

(5) space between the bevel and the combobox contents

Definition at line 1172 of file kstyle.h.

◆ Primitive

enum KStyle::ComboBox::Primitive

Relevant Generic elements:

  • Generic::Frame for the area around text input field and button
  • Generic::ArrowDown drawn on the button
  • Generic::FocusIndicator to indicate keyboard focus
See also
drawKStylePrimitive()
Enumerator
EditField 
See also
SpinBox::EditField
Button 

The button panel of the combobox.

Definition at line 1197 of file kstyle.h.


The documentation for this struct was generated from the following file:
  • kstyle.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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