summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/ntqapplication.h1
-rw-r--r--src/kernel/ntqstyle.h15
-rw-r--r--src/kernel/qapplication.cpp31
3 files changed, 47 insertions, 0 deletions
diff --git a/src/kernel/ntqapplication.h b/src/kernel/ntqapplication.h
index 98a0ef0e..cdb7fdfc 100644
--- a/src/kernel/ntqapplication.h
+++ b/src/kernel/ntqapplication.h
@@ -113,6 +113,7 @@ public:
static void setGlobalMouseTracking( bool enable );
#ifndef QT_NO_PALETTE
static TQPalette palette( const TQWidget* = 0 );
+ static TQPalette palette( TQStringList );
static void setPalette( const TQPalette &, bool informWidgets=FALSE,
const char* className = 0 );
#endif
diff --git a/src/kernel/ntqstyle.h b/src/kernel/ntqstyle.h
index 165050a7..994eff81 100644
--- a/src/kernel/ntqstyle.h
+++ b/src/kernel/ntqstyle.h
@@ -458,6 +458,11 @@ public:
PE_HeaderSectionMenu,
+ PE_PanelScrollBar,
+ PE_MenuItemIndicatorFrame,
+ PE_MenuItemIndicatorIconFrame,
+ PE_MenuItemIndicatorCheck,
+
// do not add any values below/greater this
PE_CustomBase = 0xf000000
};
@@ -830,6 +835,13 @@ public:
PM_MenuBarItemSpacing,
PM_ToolBarItemSpacing,
+ PM_MenuIndicatorFrameHBorder,
+ PM_MenuIndicatorFrameVBorder,
+ PM_MenuIconIndicatorFrameHBorder,
+ PM_MenuIconIndicatorFrameVBorder,
+
+ PM_ArrowSize,
+
// do not add any values below/greater than this
PM_CustomBase = 0xf0000000
};
@@ -1029,6 +1041,9 @@ public:
// bool - hide underlined accelerators uless Alt key is currently down
SH_HideUnderlineAcceleratorWhenAltUp,
+ // int - width of menu check column
+ SH_MenuIndicatorColumnWidth,
+
// do not add any values below/greater than this
SH_CustomBase = 0xf0000000
};
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 71b87ffe..a552c236 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -1847,6 +1847,37 @@ TQPalette TQApplication::palette(const TQWidget* w)
return *app_pal;
}
+TQPalette TQApplication::palette(TQStringList objectTypeList)
+{
+#if defined(QT_CHECK_STATE)
+ if ( !tqApp )
+ tqWarning( "TQApplication::palette: This function can only be "
+ "called after the TQApplication object has been created" );
+#endif
+ if ( !app_pal ) {
+ if ( !tqt_std_pal )
+ tqt_create_std_palette();
+ app_pal = new TQPalette( *tqt_std_pal );
+ tqt_fix_tooltips();
+ }
+
+ if ( (objectTypeList.count() > 0) && app_palettes ) {
+ TQPalette* wp = app_palettes->find( objectTypeList[objectTypeList.count()-1] );
+ if ( wp ) {
+ return *wp;
+ }
+ TQAsciiDictIterator<TQPalette> it( *app_palettes );
+ const char* name;
+ while ( (name=it.currentKey()) != 0 ) {
+ if ( objectTypeList.contains(name) ) {
+ return *it.current();
+ }
+ ++it;
+ }
+ }
+ return *app_pal;
+}
+
/*!
Changes the default application palette to \a palette. If \a
informWidgets is TRUE, then existing widgets are informed about the