assume the time spec of QDate and QTime is Qt::LocalTime in QLocale::toString() methods
for compat
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
implement debug operator for QPalette
beware that it will dump quite a lot of data, something along the lines of:
QPalette(
-> group=Active, role=WindowText, brush=QBrush(QColor(ARGB 1, 0.878431, 0.870588, 0.858824) , SolidPattern ) )
-> group=Active, role=Button, brush=QBrush(QColor(ARGB 1, 0.25098, 0.247059, 0.243137) , SolidPattern ) )
-> group=Active, role=Light, brush=QBrush(QColor(ARGB 1, 0.310628, 0.304158, 0.304158) , SolidPattern ) )
-> group=Active, role=Midlight, brush=QBrush(QColor(ARGB 1, 0.257237, 0.251865, 0.251865) , SolidPattern ) )
-> group=Active, role=Dark, brush=QBrush(QColor(ARGB 1, 0.
0915999, 0.
0896773, 0.
0896773) , SolidPattern ) )
-> group=Active, role=Mid, brush=QBrush(QColor(ARGB 1, 0.162005, 0.158633, 0.158633) , SolidPattern ) )
-> group=Active, role=Text, brush=QBrush(QColor(ARGB 1, 0.878431, 0.870588, 0.858824) , SolidPattern ) )
-> group=Active, role=BrightText, brush=QBrush(QColor(ARGB 1, 1, 1, 1) , SolidPattern ) )
-> group=Active, role=ButtonText, brush=QBrush(QColor(ARGB 1, 0.909804, 0.901961, 0.890196) , SolidPattern ) )
-> group=Active, role=Base, brush=QBrush(QColor(ARGB 0, 0, 0, 0) , SolidPattern ) )
-> group=Active, role=Window, brush=QBrush(QColor(ARGB 1, 0.188235, 0.184314, 0.184314) , SolidPattern ) )
-> group=Active, role=Shadow, brush=QBrush(QColor(ARGB 1, 0.066392, 0.
0650034, 0.
0650034) , SolidPattern ) )
-> group=Active, role=Highlight, brush=QBrush(QColor(ARGB 1, 0.
0941176, 0.282353, 0.501961) , SolidPattern ) )
-> group=Active, role=HighlightedText, brush=QBrush(QColor(ARGB 1, 1, 1, 1) , SolidPattern ) )
-> group=Active, role=Link, brush=QBrush(QColor(ARGB 1, 0.313725, 0.556863, 0.847059) , SolidPattern ) )
-> group=Active, role=LinkVisited, brush=QBrush(QColor(ARGB 1, 0.556863, 0.47451, 0.647059) , SolidPattern ) )
-> group=Active, role=AlternateBase, brush=QBrush(QColor(ARGB 1, 0.141176, 0.137255, 0.137255) , SolidPattern ) )
-> group=Active, role=NoRole, brush=QBrush(QColor(ARGB 1, 0, 0, 0) , SolidPattern ) )
-> group=Active, role=ToolTipBase, brush=QBrush(QColor(ARGB 1, 0.
0627451, 0.188235, 0.313725) , SolidPattern ) )
-> group=Active, role=ToolTipText, brush=QBrush(QColor(ARGB 1, 0.768627, 0.819608, 0.878431) , SolidPattern ) )
-> group=Disabled, role=WindowText, brush=QBrush(QColor(ARGB 1, 0.377111, 0.372473, 0.368856) , SolidPattern ) )
-> group=Disabled, role=Button, brush=QBrush(QColor(ARGB 1, 0.220218, 0.21677, 0.213336) , SolidPattern ) )
-> group=Disabled, role=Light, brush=QBrush(QColor(ARGB 1, 0.293324, 0.287205, 0.287205) , SolidPattern ) )
-> group=Disabled, role=Midlight, brush=QBrush(QColor(ARGB 1, 0.238911, 0.233921, 0.233921) , SolidPattern ) )
-> group=Disabled, role=Dark, brush=QBrush(QColor(ARGB 1, 0.
0803693, 0.
0786908, 0.
0786908) , SolidPattern ) )
-> group=Disabled, role=Mid, brush=QBrush(QColor(ARGB 1, 0.142214, 0.139239, 0.139239) , SolidPattern ) )
-> group=Disabled, role=Text, brush=QBrush(QColor(ARGB 1, 0.878431, 0.870588, 0.858824) , SolidPattern ) )
-> group=Disabled, role=BrightText, brush=QBrush(QColor(ARGB 1, 1, 1, 1) , SolidPattern ) )
-> group=Disabled, role=ButtonText, brush=QBrush(QColor(ARGB 1, 0.422553, 0.417899, 0.412055) , SolidPattern ) )
-> group=Disabled, role=Base, brush=QBrush(QColor(ARGB 0, 0, 0, 0) , SolidPattern ) )
-> group=Disabled, role=Window, brush=QBrush(QColor(ARGB 1, 0.165164, 0.161715, 0.161715) , SolidPattern ) )
-> group=Disabled, role=Shadow, brush=QBrush(QColor(ARGB 1, 0.
0583505, 0.
0571298, 0.
0571298) , SolidPattern ) )
-> group=Disabled, role=Highlight, brush=QBrush(QColor(ARGB 1, 0.165164, 0.161715, 0.161715) , SolidPattern ) )
-> group=Disabled, role=HighlightedText, brush=QBrush(QColor(ARGB 1, 0.377111, 0.372473, 0.368856) , SolidPattern ) )
-> group=Disabled, role=Link, brush=QBrush(QColor(ARGB 1, 0.167926, 0.240345, 0.329473) , SolidPattern ) )
-> group=Disabled, role=LinkVisited, brush=QBrush(QColor(ARGB 1, 0.242588, 0.215061, 0.26804) , SolidPattern ) )
-> group=Disabled, role=AlternateBase, brush=QBrush(QColor(ARGB 1, 0.123873, 0.120424, 0.120424) , SolidPattern ) )
-> group=Disabled, role=NoRole, brush=QBrush(QColor(ARGB 1, 0, 0, 0) , SolidPattern ) )
-> group=Disabled, role=ToolTipBase, brush=QBrush(QColor(ARGB 1, 0.
0627451, 0.188235, 0.313725) , SolidPattern ) )
-> group=Disabled, role=ToolTipText, brush=QBrush(QColor(ARGB 1, 0.768627, 0.819608, 0.878431) , SolidPattern ) )
-> group=Inactive, role=WindowText, brush=QBrush(QColor(ARGB 1, 0.878431, 0.870588, 0.858824) , SolidPattern ) )
-> group=Inactive, role=Button, brush=QBrush(QColor(ARGB 1, 0.25098, 0.247059, 0.243137) , SolidPattern ) )
-> group=Inactive, role=Light, brush=QBrush(QColor(ARGB 1, 0.310628, 0.304158, 0.304158) , SolidPattern ) )
-> group=Inactive, role=Midlight, brush=QBrush(QColor(ARGB 1, 0.257237, 0.251865, 0.251865) , SolidPattern ) )
-> group=Inactive, role=Dark, brush=QBrush(QColor(ARGB 1, 0.
0915999, 0.
0896773, 0.
0896773) , SolidPattern ) )
-> group=Inactive, role=Mid, brush=QBrush(QColor(ARGB 1, 0.162005, 0.158633, 0.158633) , SolidPattern ) )
-> group=Inactive, role=Text, brush=QBrush(QColor(ARGB 1, 0.878431, 0.870588, 0.858824) , SolidPattern ) )
-> group=Inactive, role=BrightText, brush=QBrush(QColor(ARGB 1, 1, 1, 1) , SolidPattern ) )
-> group=Inactive, role=ButtonText, brush=QBrush(QColor(ARGB 1, 0.909804, 0.901961, 0.890196) , SolidPattern ) )
-> group=Inactive, role=Base, brush=QBrush(QColor(ARGB 0, 0, 0, 0) , SolidPattern ) )
-> group=Inactive, role=Window, brush=QBrush(QColor(ARGB 1, 0.188235, 0.184314, 0.184314) , SolidPattern ) )
-> group=Inactive, role=Shadow, brush=QBrush(QColor(ARGB 1, 0.066392, 0.
0650034, 0.
0650034) , SolidPattern ) )
-> group=Inactive, role=Highlight, brush=QBrush(QColor(ARGB 1, 0.
0980087, 0.224735, 0.373404) , SolidPattern ) )
-> group=Inactive, role=HighlightedText, brush=QBrush(QColor(ARGB 1, 0.878431, 0.870588, 0.858824) , SolidPattern ) )
-> group=Inactive, role=Link, brush=QBrush(QColor(ARGB 1, 0.313725, 0.556863, 0.847059) , SolidPattern ) )
-> group=Inactive, role=LinkVisited, brush=QBrush(QColor(ARGB 1, 0.556863, 0.47451, 0.647059) , SolidPattern ) )
-> group=Inactive, role=AlternateBase, brush=QBrush(QColor(ARGB 1, 0.141176, 0.137255, 0.137255) , SolidPattern ) )
-> group=Inactive, role=NoRole, brush=QBrush(QColor(ARGB 1, 0, 0, 0) , SolidPattern ) )
-> group=Inactive, role=ToolTipBase, brush=QBrush(QColor(ARGB 1, 0.
0627451, 0.188235, 0.313725) , SolidPattern ) )
-> group=Inactive, role=ToolTipText, brush=QBrush(QColor(ARGB 1, 0.768627, 0.819608, 0.878431) , SolidPattern ) )
)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
pass the size of the QByteArray object to QString::fromLocal8Bit() in QFile::decodeName()
for paths with spaces
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
rename QDeclarativeView, QDeclarativeComponent and QDeclarativeLoader Status enum
partially fixes kdelibs build when CMAKE_UNITY_BUILD is set to ON (build
fails due to enum clashes with stuff defined in X11 headers)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
choose boundary reason based on the previous/next char only QTextBoundaryFinder::boundaryReasons()
the start and end of the text were considered as boundaries for compat only
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
calculate the data size before allocating storage for QDBusMetaObjectPrivate in QDBusMetaObjectGenerator::write()
part of it may be allocated on the stack, part of it on the heap (depending
on the number of methods, properties, etc.). fixes heap-use-after-free in
case other container is used (e.g. QVector<int>) and optimizes it a bit
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
replace static table and enums with the values they map to in parseFont() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
use the static QFile::setPermissions() method in QStandardPaths::writableLocation()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>