Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAngleSelectorSpinBox::Private Struct Reference

Public Member Functions

void updateStyleSheet ()
 

Public Attributes

QSize cachedSizeHint
 
bool hasFocus
 
bool isFlat
 
bool isHovered
 
KisAngleSelectorSpinBoxq
 

Detailed Description

Definition at line 29 of file KisAngleSelector.cpp.

Member Function Documentation

◆ updateStyleSheet()

void KisAngleSelectorSpinBox::Private::updateStyleSheet ( )
inline

Definition at line 37 of file KisAngleSelector.cpp.

38 {
39 if (!isFlat || hasFocus || isHovered) {
40 q->setStyleSheet("QDoubleSpinBox{}");
41 } else {
42 q->setStyleSheet(
43 "QDoubleSpinBox{background:transparent; border:transparent;}"
44 "QDoubleSpinBox::up-button{background:transparent; border:transparent;}"
45 "QDoubleSpinBox::down-button{background:transparent; border:transparent;}"
46 );
47 }
48 q->lineEdit()->setStyleSheet("QLineEdit{background:transparent;}");
49 }

References hasFocus, isFlat, isHovered, and q.

Member Data Documentation

◆ cachedSizeHint

QSize KisAngleSelectorSpinBox::Private::cachedSizeHint

Definition at line 35 of file KisAngleSelector.cpp.

◆ hasFocus

bool KisAngleSelectorSpinBox::Private::hasFocus

Definition at line 33 of file KisAngleSelector.cpp.

◆ isFlat

bool KisAngleSelectorSpinBox::Private::isFlat

Definition at line 32 of file KisAngleSelector.cpp.

◆ isHovered

bool KisAngleSelectorSpinBox::Private::isHovered

Definition at line 34 of file KisAngleSelector.cpp.

◆ q

KisAngleSelectorSpinBox* KisAngleSelectorSpinBox::Private::q

Definition at line 31 of file KisAngleSelector.cpp.


The documentation for this struct was generated from the following file: