diff options
Diffstat (limited to 'doc/html/themes-example.html')
-rw-r--r-- | doc/html/themes-example.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index 834e07a33..c0a5ff883 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -2150,7 +2150,7 @@ protected: <a href="ntqtabwidget.html">TQTabWidget</a> *tabwidget; protected slots: - void makeStyle(const <a href="ntqstring.html">TQString</a> &); + void makeStyle(const <a href="tqstring.html">TQString</a> &); void about(); void aboutTQt(); @@ -2224,27 +2224,27 @@ private: <a href="qactiongroup.html">TQActionGroup</a> *ag = new <a href="qactiongroup.html">TQActionGroup</a>( this, 0 ); <a name="x320"></a> ag-><a href="qactiongroup.html#setExclusive">setExclusive</a>( TRUE ); <a href="ntqsignalmapper.html">TQSignalMapper</a> *styleMapper = new <a href="ntqsignalmapper.html">TQSignalMapper</a>( this ); -<a name="x335"></a> <a href="tqobject.html#connect">connect</a>( styleMapper, TQ_SIGNAL( <a href="ntqsignalmapper.html#mapped">mapped</a>( const <a href="ntqstring.html">TQString</a>& ) ), this, TQ_SLOT( makeStyle( const <a href="ntqstring.html">TQString</a>& ) ) ); -<a name="x342"></a> <a href="ntqstringlist.html">TQStringList</a> list = TQStyleFactory::<a href="ntqstylefactory.html#keys">keys</a>(); -<a name="x341"></a> list.<a href="ntqstringlist.html#sort">sort</a>(); +<a name="x335"></a> <a href="tqobject.html#connect">connect</a>( styleMapper, TQ_SIGNAL( <a href="ntqsignalmapper.html#mapped">mapped</a>( const <a href="tqstring.html">TQString</a>& ) ), this, TQ_SLOT( makeStyle( const <a href="tqstring.html">TQString</a>& ) ) ); +<a name="x342"></a> <a href="tqstringlist.html">TQStringList</a> list = TQStyleFactory::<a href="ntqstylefactory.html#keys">keys</a>(); +<a name="x341"></a> list.<a href="tqstringlist.html#sort">sort</a>(); #ifndef TQT_NO_STYLE_WINDOWS <a name="x346"></a><a name="x344"></a> list.<a href="tqvaluelist.html#insert">insert</a>(list.<a href="tqvaluelist.html#begin">begin</a>(), "Norwegian Wood"); list.<a href="tqvaluelist.html#insert">insert</a>(list.<a href="tqvaluelist.html#begin">begin</a>(), "Metal"); #endif <a href="ntqdict.html">TQDict</a><int> stylesDict( 17, FALSE ); <a name="x345"></a> for ( TQStringList::Iterator it = list.<a href="tqvaluelist.html#begin">begin</a>(); it != list.<a href="tqvaluelist.html#end">end</a>(); ++it ) { - <a href="ntqstring.html">TQString</a> styleStr = *it; - <a href="ntqstring.html">TQString</a> styleAccel = styleStr; -<a name="x338"></a> if ( stylesDict[styleAccel.<a href="ntqstring.html#left">left</a>(1)] ) { -<a name="x339"></a> for ( uint i = 0; i < styleAccel.<a href="ntqstring.html#length">length</a>(); i++ ) { -<a name="x340"></a> if ( !stylesDict[styleAccel.<a href="ntqstring.html#mid">mid</a>( i, 1 )] ) { -<a name="x326"></a> stylesDict.<a href="ntqdict.html#insert">insert</a>(styleAccel.<a href="ntqstring.html#mid">mid</a>( i, 1 ), (const int *)1); -<a name="x337"></a> styleAccel = styleAccel.<a href="ntqstring.html#insert">insert</a>( i, '&' ); + <a href="tqstring.html">TQString</a> styleStr = *it; + <a href="tqstring.html">TQString</a> styleAccel = styleStr; +<a name="x338"></a> if ( stylesDict[styleAccel.<a href="tqstring.html#left">left</a>(1)] ) { +<a name="x339"></a> for ( uint i = 0; i < styleAccel.<a href="tqstring.html#length">length</a>(); i++ ) { +<a name="x340"></a> if ( !stylesDict[styleAccel.<a href="tqstring.html#mid">mid</a>( i, 1 )] ) { +<a name="x326"></a> stylesDict.<a href="ntqdict.html#insert">insert</a>(styleAccel.<a href="tqstring.html#mid">mid</a>( i, 1 ), (const int *)1); +<a name="x337"></a> styleAccel = styleAccel.<a href="tqstring.html#insert">insert</a>( i, '&' ); break; } } } else { - stylesDict.<a href="ntqdict.html#insert">insert</a>(styleAccel.<a href="ntqstring.html#left">left</a>(1), (const int *)1); + stylesDict.<a href="ntqdict.html#insert">insert</a>(styleAccel.<a href="tqstring.html#left">left</a>(1), (const int *)1); styleAccel = "&"+styleAccel; } <a name="x319"></a> <a href="ntqaction.html">TQAction</a> *a = new <a href="ntqaction.html">TQAction</a>( styleStr, TQIconSet(), styleAccel, 0, ag, 0, ag-><a href="qactiongroup.html#isExclusive">isExclusive</a>() ); @@ -2266,7 +2266,7 @@ private: #endif } -void <a name="f232"></a>Themes::makeStyle(const <a href="ntqstring.html">TQString</a> &style) +void <a name="f232"></a>Themes::makeStyle(const <a href="tqstring.html">TQString</a> &style) { if(style == "Norwegian Wood") { #ifndef TQT_NO_STYLE_WINDOWS |