Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent 3b68f156c6
commit f5a0e45e05

@ -21,7 +21,7 @@ SQ_BCGLabel::SQ_BCGLabel(TQWidget *parent, const char *name, WFlags f) : TQLabel
{ {
setScaledContents(false); setScaledContents(false);
tqsetAlignment(TQt::AlignHCenter | TQt::AlignVCenter); setAlignment(TQt::AlignHCenter | TQt::AlignVCenter);
} }
SQ_BCGLabel::~SQ_BCGLabel() SQ_BCGLabel::~SQ_BCGLabel()

@ -98,7 +98,7 @@ TQString SQ_Converter::adjustFileName(const TQString &globalprefix, const TQStri
TQString result, inner, filter = lw->filter; TQString result, inner, filter = lw->filter;
TQString ext = ff.extension(false); TQString ext = ff.extension(false);
TQString prefix, suffix, name2 = name; TQString prefix, suffix, name2 = name;
TQString spage = TQString::tqfromLatin1("page_%1.").tqarg((TQString::tqfromLatin1("%1").tqarg(page)).rightJustify(3, '0')); TQString spage = TQString::fromLatin1("page_%1.").tqarg((TQString::fromLatin1("%1").tqarg(page)).rightJustify(3, '0'));
if(!putto.isEmpty()) if(!putto.isEmpty())
{ {
@ -110,7 +110,7 @@ TQString SQ_Converter::adjustFileName(const TQString &globalprefix, const TQStri
prefix.truncate(name2.length() - ext.length()); prefix.truncate(name2.length() - ext.length());
suffix = (SQ_LibraryHandler::instance()->knownExtension(TQString::tqfromLatin1("*.") + ext)) suffix = (SQ_LibraryHandler::instance()->knownExtension(TQString::fromLatin1("*.") + ext))
? TQString(lw->codec->extension(32)) : ext; ? TQString(lw->codec->extension(32)) : ext;
if(replace == 0 || replace == 2) if(replace == 0 || replace == 2)
@ -121,7 +121,7 @@ TQString SQ_Converter::adjustFileName(const TQString &globalprefix, const TQStri
if(TQFile::exists(result)) if(TQFile::exists(result))
{ {
inner = TQString::tqfromLatin1("1."); inner = TQString::fromLatin1("1.");
result = (!paged) ? (prefix + inner + suffix) : (prefix + spage + inner + suffix); result = (!paged) ? (prefix + inner + suffix) : (prefix + spage + inner + suffix);
} }
} }

@ -491,7 +491,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -508,7 +508,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -535,7 +535,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -560,7 +560,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>249</width> <width>249</width>
<height>21</height> <height>21</height>
@ -615,7 +615,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -640,7 +640,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -665,7 +665,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -684,7 +684,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>
@ -709,7 +709,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -728,7 +728,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>

@ -40,7 +40,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>237</width> <width>237</width>
<height>20</height> <height>20</height>
@ -149,7 +149,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>26</width> <width>26</width>
<height>155</height> <height>155</height>

@ -111,7 +111,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -147,7 +147,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>260</width> <width>260</width>
<height>16</height> <height>16</height>

@ -82,7 +82,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>40</height> <height>40</height>
@ -120,7 +120,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -166,7 +166,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>45</height> <height>45</height>
@ -221,7 +221,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>26</height> <height>26</height>
@ -251,7 +251,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>30</height> <height>30</height>
@ -289,7 +289,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>30</height> <height>30</height>
@ -352,7 +352,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>14</height> <height>14</height>
@ -390,7 +390,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>10</height> <height>10</height>
@ -452,7 +452,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>11</height> <height>11</height>
@ -514,7 +514,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>25</height> <height>25</height>
@ -552,7 +552,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>14</height> <height>14</height>
@ -694,7 +694,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>35</height> <height>35</height>
@ -740,7 +740,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>10</height> <height>10</height>
@ -786,7 +786,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>10</height> <height>10</height>
@ -832,7 +832,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>60</height> <height>60</height>
@ -870,7 +870,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>35</height> <height>35</height>
@ -943,7 +943,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>41</height> <height>41</height>
@ -973,7 +973,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>25</height> <height>25</height>
@ -1011,7 +1011,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>75</height> <height>75</height>
@ -1066,7 +1066,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>113</height> <height>113</height>
@ -1104,7 +1104,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>71</height> <height>71</height>
@ -1124,7 +1124,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -1149,7 +1149,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>285</width> <width>285</width>
<height>16</height> <height>16</height>
@ -1316,7 +1316,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>140</width> <width>140</width>
<height>0</height> <height>0</height>
@ -1333,7 +1333,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -1360,7 +1360,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>
@ -1385,7 +1385,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -1402,7 +1402,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -1421,7 +1421,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>
@ -1438,7 +1438,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>

@ -20,7 +20,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>250</width> <width>250</width>
<height>0</height> <height>0</height>
@ -75,7 +75,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>10</height> <height>10</height>

@ -74,7 +74,7 @@ KLC::KLC( TQWidget* parent, const char* name, WFlags fl )
KLCLayout->addWidget( listEnabled, 1, 0 ); KLCLayout->addWidget( listEnabled, 1, 0 );
languageChange(); languageChange();
resize( TQSize(586, 425).expandedTo(tqminimumSizeHint()) ); resize( TQSize(586, 425).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
// signals and slots connections // signals and slots connections

@ -37,7 +37,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>371</width> <width>371</width>
<height>26</height> <height>26</height>

@ -99,7 +99,7 @@ void KLC::slotNewItems(const KFileItemList &list)
{ {
KFileItemListIterator it(list); KFileItemListIterator it(list);
KFileItem *fi; KFileItem *fi;
TQString soname = TQString::tqfromLatin1(".so.%1").tqarg(SQ_KL_VER); TQString soname = TQString::fromLatin1(".so.%1").tqarg(SQ_KL_VER);
while((fi = it.current())) while((fi = it.current()))
{ {

@ -514,7 +514,7 @@ void KSquirrel::createWidgets(int createFirst)
m_urlbox = kconf->readBoolEntry("has_url", false); m_urlbox = kconf->readBoolEntry("has_url", false);
// main TQVBox // main TQVBox
mainPage = new TQVBox(this, TQString::tqfromLatin1("SQ_BROWSER_VBOX")); mainPage = new TQVBox(this, TQString::fromLatin1("SQ_BROWSER_VBOX"));
mainPage->resize(size()); mainPage->resize(size());
SQ_SplashScreen::advance(); SQ_SplashScreen::advance();
@ -526,8 +526,8 @@ void KSquirrel::createWidgets(int createFirst)
tools = new KToolBar(mainPage); tools = new KToolBar(mainPage);
// location toolbar // location toolbar
pTLocation = new KToolBar(mainPage, TQString::tqfromLatin1("Location toolbar")); pTLocation = new KToolBar(mainPage, TQString::fromLatin1("Location toolbar"));
pTLocation->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum); pTLocation->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum);
// main splitter // main splitter
mainView = new TQSplitter(Qt::Horizontal, mainPage); Q_ASSERT(mainView); mainView = new TQSplitter(Qt::Horizontal, mainPage); Q_ASSERT(mainView);
@ -628,7 +628,7 @@ void KSquirrel::createWidgets(int createFirst)
void KSquirrel::createStatusBar(KStatusBar *bar) void KSquirrel::createStatusBar(KStatusBar *bar)
{ {
sbar = bar; sbar = bar;
sbar->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed); sbar->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
sbar->setSizeGripEnabled(true); sbar->setSizeGripEnabled(true);
sbar->show(); sbar->show();
@ -642,9 +642,9 @@ void KSquirrel::createStatusBar(KStatusBar *bar)
fileIcon->setScaledContents(false); fileIcon->setScaledContents(false);
// name of current file // name of current file
fileName = new KSqueezedTextLabel(TQString::tqfromLatin1("----"), vb, "fileName"); fileName = new KSqueezedTextLabel(TQString::fromLatin1("----"), vb, "fileName");
fileName->setTextFormat(TQt::RichText); fileName->setTextFormat(TQt::RichText);
fileName->tqsetAlignment(TQt::AlignAuto | TQt::AlignVCenter | TQt::ExpandTabs); fileName->setAlignment(TQt::AlignAuto | TQt::AlignVCenter | TQt::ExpandTabs);
diskSpace = new TQLabel(TQString(), sbar, "diskSpace"); diskSpace = new TQLabel(TQString(), sbar, "diskSpace");
@ -823,7 +823,7 @@ void KSquirrel::createActions()
pASelectGroup = new KAction(i18n("Select group"), "viewmag+", CTRL+TQt::Key_Plus, 0, 0, actionCollection(), "SQ Select Group"); pASelectGroup = new KAction(i18n("Select group"), "viewmag+", CTRL+TQt::Key_Plus, 0, 0, actionCollection(), "SQ Select Group");
pADeselectGroup = new KAction(i18n("Deselect group"), "viewmag-", CTRL+TQt::Key_Minus, 0, 0, actionCollection(), "SQ Deselect Group"); pADeselectGroup = new KAction(i18n("Deselect group"), "viewmag-", CTRL+TQt::Key_Minus, 0, 0, actionCollection(), "SQ Deselect Group");
const TQString thumbs_size__ = TQString::tqfromLatin1("thumbs_size__"); const TQString thumbs_size__ = TQString::fromLatin1("thumbs_size__");
pAThumb1->setExclusiveGroup(thumbs_size__); pAThumb1->setExclusiveGroup(thumbs_size__);
pAThumb2->setExclusiveGroup(thumbs_size__); pAThumb2->setExclusiveGroup(thumbs_size__);
pAThumb3->setExclusiveGroup(thumbs_size__); pAThumb3->setExclusiveGroup(thumbs_size__);
@ -849,7 +849,7 @@ void KSquirrel::createActions()
pAThumbs->setDelayed(false); pAThumbs->setDelayed(false);
TQString raise_some_widget_from_stack = TQString::tqfromLatin1("raise_some_widget_from_stack"); TQString raise_some_widget_from_stack = TQString::fromLatin1("raise_some_widget_from_stack");
pARaiseListView->setExclusiveGroup(raise_some_widget_from_stack); pARaiseListView->setExclusiveGroup(raise_some_widget_from_stack);
pARaiseIconView->setExclusiveGroup(raise_some_widget_from_stack); pARaiseIconView->setExclusiveGroup(raise_some_widget_from_stack);
pARaiseDetailView->setExclusiveGroup(raise_some_widget_from_stack); pARaiseDetailView->setExclusiveGroup(raise_some_widget_from_stack);
@ -1142,7 +1142,7 @@ void KSquirrel::createPostSplash()
TQLabel *pp = new TQLabel(hbox); TQLabel *pp = new TQLabel(hbox);
pp->setPalette(TQPalette(cc, cc)); pp->setPalette(TQPalette(cc, cc));
pp->tqsetAlignment(TQt::AlignCenter); pp->setAlignment(TQt::AlignCenter);
TQPixmap todo = TQPixmap::fromMimeSource(locate("data", "images/tray.png")); TQPixmap todo = TQPixmap::fromMimeSource(locate("data", "images/tray.png"));
@ -1154,7 +1154,7 @@ void KSquirrel::createPostSplash()
TQLabel *l = new TQLabel(i18n(" writing settings and thumbnails... "), hbox); TQLabel *l = new TQLabel(i18n(" writing settings and thumbnails... "), hbox);
l->setPalette(TQPalette(cc, cc)); l->setPalette(TQPalette(cc, cc));
l->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter); l->setAlignment(TQt::AlignLeft | TQt::AlignVCenter);
hbox->setStretchFactor(pp, 0); hbox->setStretchFactor(pp, 0);
hbox->setStretchFactor(l, 1); hbox->setStretchFactor(l, 1);
@ -1494,7 +1494,7 @@ void KSquirrel::slotOpenFileAndSet()
void KSquirrel::slotAnimatedClicked() void KSquirrel::slotAnimatedClicked()
{ {
// invoke default browser // invoke default browser
kapp->invokeBrowser(TQString::tqfromLatin1("http://ksquirrel.sourceforge.net/")); kapp->invokeBrowser(TQString::fromLatin1("http://ksquirrel.sourceforge.net/"));
} }
// Create SQ_ThumbnailCacheMaster, which can do something with thumbnails // Create SQ_ThumbnailCacheMaster, which can do something with thumbnails
@ -1748,7 +1748,7 @@ void KSquirrel::control(const TQString &command)
{ {
int id = it.data(); int id = it.data();
KAction *a = SQ_GLWidget::window()->actionCollection()->action(TQString::tqfromLatin1("action_%1").tqarg(id)); KAction *a = SQ_GLWidget::window()->actionCollection()->action(TQString::fromLatin1("action_%1").tqarg(id));
if(a) a->activate(); if(a) a->activate();
} }

@ -48,7 +48,7 @@ KSquirrelPart::KSquirrelPart(TQWidget *parentWidget, const char *,
ext = new KSquirrelPartBrowserExtension(this); ext = new KSquirrelPartBrowserExtension(this);
KGlobal::dirs()->addResourceType("data", KStandardDirs::kde_default("data") + TQString::tqfromLatin1("ksquirrel")); KGlobal::dirs()->addResourceType("data", KStandardDirs::kde_default("data") + TQString::fromLatin1("ksquirrel"));
KGlobal::locale()->setActiveCatalogue(KSquirrelFactory::instance()->instanceName()); KGlobal::locale()->setActiveCatalogue(KSquirrelFactory::instance()->instanceName());
if(!SQ_ErrorString::instance()) if(!SQ_ErrorString::instance())

@ -21,7 +21,7 @@ SQ_BCGLabel::SQ_BCGLabel(TQWidget *parent, const char *name, WFlags f) : TQLabel
{ {
setScaledContents(false); setScaledContents(false);
tqsetAlignment(TQt::AlignHCenter | TQt::AlignVCenter); setAlignment(TQt::AlignHCenter | TQt::AlignVCenter);
} }
SQ_BCGLabel::~SQ_BCGLabel() SQ_BCGLabel::~SQ_BCGLabel()

@ -34,7 +34,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -117,7 +117,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>

@ -30,7 +30,7 @@ SQ_ErrorString::SQ_ErrorString(TQObject *parent) : TQObject(parent)
m_instance = this; m_instance = this;
// fill map with translated messages // fill map with translated messages
messages.insert(SQE_OK, TQString::tqfromLatin1("OK")); messages.insert(SQE_OK, TQString::fromLatin1("OK"));
messages.insert(SQE_R_NOFILE, i18n("cannot open file for reading")); messages.insert(SQE_R_NOFILE, i18n("cannot open file for reading"));
messages.insert(SQE_R_BADFILE, i18n("file corrupted")); messages.insert(SQE_R_BADFILE, i18n("file corrupted"));
messages.insert(SQE_R_NOMEMORY, i18n("no memory")); messages.insert(SQE_R_NOMEMORY, i18n("no memory"));

@ -171,7 +171,7 @@ void SQ_ExternalTool::slotAboutToShowMenu()
TQString file = KStringHandler::rsqueeze(item->name(), 30); TQString file = KStringHandler::rsqueeze(item->name(), 30);
// finally, change title // finally, change title
TQString final = (items.count() == 1 || items.count() == 0) ? file : (file + TQString::tqfromLatin1(" (+%1)").tqarg(items.count()-1)); TQString final = (items.count() == 1 || items.count() == 0) ? file : (file + TQString::fromLatin1(" (+%1)").tqarg(items.count()-1));
menu->changeTitle(final); menu->changeTitle(final);
} }

@ -491,7 +491,7 @@ void SQ_GLWidget::matrixChanged()
float z = (m < 1.0) ? 1.0/m : m; float z = (m < 1.0) ? 1.0/m : m;
// construct zoom // construct zoom
str = TQString::tqfromLatin1("%1% [%2:%3]") str = TQString::fromLatin1("%1% [%2:%3]")
.tqarg(fzoom, 0, 'f', 1) .tqarg(fzoom, 0, 'f', 1)
.tqarg((m < 1.0)?1.0:z, 0, 'f', 1) .tqarg((m < 1.0)?1.0:z, 0, 'f', 1)
.tqarg((m > 1.0)?1.0:z, 0, 'f', 1); .tqarg((m > 1.0)?1.0:z, 0, 'f', 1);
@ -503,7 +503,7 @@ void SQ_GLWidget::matrixChanged()
#endif #endif
// construct rotation angle // construct rotation angle
str = TQString::tqfromLatin1("%1%2 %3 deg") str = TQString::fromLatin1("%1%2 %3 deg")
.tqarg((tab->isflippedV)?"V":"") .tqarg((tab->isflippedV)?"V":"")
.tqarg((tab->isflippedH)?"H":"") .tqarg((tab->isflippedH)?"H":"")
.tqarg(tab->curangle, 0, 'f', 1); .tqarg(tab->curangle, 0, 'f', 1);
@ -1598,7 +1598,7 @@ void SQ_GLWidget::decode()
} }
} }
id = images->insertItem(TQString::tqfromLatin1("#%1 [%2x%3@%4]").tqarg(tab->current+1).tqarg(im->w).tqarg(im->h).tqarg(im->bpp)); id = images->insertItem(TQString::fromLatin1("#%1 [%2x%3@%4]").tqarg(tab->current+1).tqarg(im->w).tqarg(im->h).tqarg(im->bpp));
images->setItemParameter(id, tab->current); images->setItemParameter(id, tab->current);
@ -1655,7 +1655,7 @@ void SQ_GLWidget::paletteChange(const TQPalette &oldPalette)
if(SQ_Config::instance()->readNumEntry("GL view background type", 1) == 0) if(SQ_Config::instance()->readNumEntry("GL view background type", 1) == 0)
{ {
TQColor color = tqcolorGroup().color(TQColorGroup::Base); TQColor color = colorGroup().color(TQColorGroup::Base);
qglClearColor(color); qglClearColor(color);
updateGL(); updateGL();
} }

@ -91,14 +91,14 @@ void SQ_GLWidget::createActions()
pAFull = new KToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full"); pAFull = new KToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full");
TQString squirrel_zoom_actions = TQString::tqfromLatin1("squirrel_zoom_actions"); TQString squirrel_zoom_actions = TQString::fromLatin1("squirrel_zoom_actions");
pAZoomW->setExclusiveGroup(squirrel_zoom_actions); pAZoomW->setExclusiveGroup(squirrel_zoom_actions);
pAZoomH->setExclusiveGroup(squirrel_zoom_actions); pAZoomH->setExclusiveGroup(squirrel_zoom_actions);
pAZoomWH->setExclusiveGroup(squirrel_zoom_actions); pAZoomWH->setExclusiveGroup(squirrel_zoom_actions);
pAZoom100->setExclusiveGroup(squirrel_zoom_actions); pAZoom100->setExclusiveGroup(squirrel_zoom_actions);
pAZoomLast->setExclusiveGroup(squirrel_zoom_actions); pAZoomLast->setExclusiveGroup(squirrel_zoom_actions);
TQString squirrel_selection_type = TQString::tqfromLatin1("squirrel_selection_type"); TQString squirrel_selection_type = TQString::fromLatin1("squirrel_selection_type");
pASelectionEllipse->setExclusiveGroup(squirrel_selection_type); pASelectionEllipse->setExclusiveGroup(squirrel_selection_type);
pASelectionRect->setExclusiveGroup(squirrel_selection_type); pASelectionRect->setExclusiveGroup(squirrel_selection_type);
@ -236,17 +236,17 @@ void SQ_GLWidget::slotProperties()
// save tab->current image parameters and some additioanl information // save tab->current image parameters and some additioanl information
// in list // in list
list << tab->quickImageInfo list << tab->quickImageInfo
<< TQString::tqfromLatin1("%1x%2").tqarg(tab->finfo.image[tab->current].w).tqarg(tab->finfo.image[tab->current].h) << TQString::fromLatin1("%1x%2").tqarg(tab->finfo.image[tab->current].w).tqarg(tab->finfo.image[tab->current].h)
<< TQString::tqfromLatin1("%1").tqarg(tab->finfo.image[tab->current].bpp) << TQString::fromLatin1("%1").tqarg(tab->finfo.image[tab->current].bpp)
<< tab->finfo.image[tab->current].colorspace << tab->finfo.image[tab->current].colorspace
<< tab->finfo.image[tab->current].compression << tab->finfo.image[tab->current].compression
<< sz << sz
<< TQString::tqfromLatin1("%1").tqarg((double)real_size / tab->fmt_size, 0, 'f', 2) << TQString::fromLatin1("%1").tqarg((double)real_size / tab->fmt_size, 0, 'f', 2)
<< ((tab->finfo.image[tab->current].interlaced) ? i18n("yes") : i18n("no")) << ((tab->finfo.image[tab->current].interlaced) ? i18n("yes") : i18n("no"))
<< TQString::tqfromLatin1("%1").tqarg(errors) << TQString::fromLatin1("%1").tqarg(errors)
<< TQString::tqfromLatin1("%1").tqarg(tab->finfo.image.size()) << TQString::fromLatin1("%1").tqarg(tab->finfo.image.size())
<< TQString::tqfromLatin1("#%1").tqarg(tab->current+1) << TQString::fromLatin1("#%1").tqarg(tab->current+1)
<< TQString::tqfromLatin1("%1").tqarg(tab->finfo.image[tab->current].delay); << TQString::fromLatin1("%1").tqarg(tab->finfo.image[tab->current].delay);
// create dialog and setup it // create dialog and setup it
SQ_ImageProperties prop(this); SQ_ImageProperties prop(this);
@ -867,7 +867,7 @@ void SQ_GLWidget::initAccelsAndMenu()
menu->insertItem(i18n("Image"), menuImage); menu->insertItem(i18n("Image"), menuImage);
#define SQ_ADD_KACTION(b) \ #define SQ_ADD_KACTION(b) \
(new KAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::tqfromLatin1("action_%1").tqarg(b))) (new KAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").tqarg(b)))
id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate())); id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate()));
@ -900,13 +900,13 @@ void SQ_GLWidget::initAccelsAndMenu()
menuZoom->insertItem(i18n("Zoom 2x") + "\tCtrl++", SQ_ADD_KACTION(TQt::Key_Plus+CTRL), TQT_SLOT(activate())); menuZoom->insertItem(i18n("Zoom 2x") + "\tCtrl++", SQ_ADD_KACTION(TQt::Key_Plus+CTRL), TQT_SLOT(activate()));
menuZoom->insertItem(i18n("Zoom 1/2x") + "\tCtrl+-", SQ_ADD_KACTION(TQt::Key_Minus+CTRL), TQT_SLOT(activate())); menuZoom->insertItem(i18n("Zoom 1/2x") + "\tCtrl+-", SQ_ADD_KACTION(TQt::Key_Minus+CTRL), TQT_SLOT(activate()));
menuZoom->insertSeparator(); menuZoom->insertSeparator();
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom10016.png")), TQString::tqfromLatin1("100%") + "\t1", SQ_ADD_KACTION(TQt::Key_1), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom10016.png")), TQString::fromLatin1("100%") + "\t1", SQ_ADD_KACTION(TQt::Key_1), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom20016.png")), TQString::tqfromLatin1("200%") + "\t2", SQ_ADD_KACTION(TQt::Key_2), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom20016.png")), TQString::fromLatin1("200%") + "\t2", SQ_ADD_KACTION(TQt::Key_2), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom30016.png")), TQString::tqfromLatin1("300%") + "\t3", SQ_ADD_KACTION(TQt::Key_3), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom30016.png")), TQString::fromLatin1("300%") + "\t3", SQ_ADD_KACTION(TQt::Key_3), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom50016.png")), TQString::tqfromLatin1("500%") + "\t5", SQ_ADD_KACTION(TQt::Key_5), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom50016.png")), TQString::fromLatin1("500%") + "\t5", SQ_ADD_KACTION(TQt::Key_5), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom70016.png")), TQString::tqfromLatin1("700%") + "\t7", SQ_ADD_KACTION(TQt::Key_7), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom70016.png")), TQString::fromLatin1("700%") + "\t7", SQ_ADD_KACTION(TQt::Key_7), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom90016.png")), TQString::tqfromLatin1("900%") + "\t9", SQ_ADD_KACTION(TQt::Key_9), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom90016.png")), TQString::fromLatin1("900%") + "\t9", SQ_ADD_KACTION(TQt::Key_9), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom100016.png")), TQString::tqfromLatin1("1000%") + "\t0", SQ_ADD_KACTION(TQt::Key_0), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom100016.png")), TQString::fromLatin1("1000%") + "\t0", SQ_ADD_KACTION(TQt::Key_0), TQT_SLOT(activate()));
menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveLeft16.png")), i18n("Move left") + "\tRight", SQ_ADD_KACTION(TQt::Key_Right), TQT_SLOT(activate())); menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveLeft16.png")), i18n("Move left") + "\tRight", SQ_ADD_KACTION(TQt::Key_Right), TQT_SLOT(activate()));
menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveRight16.png")), i18n("Move right") + "\tLeft", SQ_ADD_KACTION(TQt::Key_Left), TQT_SLOT(activate())); menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveRight16.png")), i18n("Move right") + "\tLeft", SQ_ADD_KACTION(TQt::Key_Left), TQT_SLOT(activate()));
@ -1312,7 +1312,7 @@ void SQ_GLWidget::slotChangeTab(int id)
for(;it != itEnd;++it, ++i) for(;it != itEnd;++it, ++i)
{ {
mid = images->insertItem(TQString::tqfromLatin1("#%1 [%2x%3@%4]").tqarg(i+1).tqarg((*it).w).tqarg((*it).h).tqarg((*it).bpp)); mid = images->insertItem(TQString::fromLatin1("#%1 [%2x%3@%4]").tqarg(i+1).tqarg((*it).w).tqarg((*it).h).tqarg((*it).bpp));
images->setItemParameter(mid, i); images->setItemParameter(mid, i);
if(i == tab->current) if(i == tab->current)
@ -1493,7 +1493,7 @@ void SQ_GLWidget::setClearColor()
{ {
// system color // system color
case 0: case 0:
color = tqcolorGroup().color(TQColorGroup::Base); color = colorGroup().color(TQColorGroup::Base);
break; break;
// custom color // custom color
@ -1623,7 +1623,7 @@ void SQ_GLWidget::createMarks()
*/ */
void SQ_GLWidget::updateCurrentFileInfo() void SQ_GLWidget::updateCurrentFileInfo()
{ {
TQString status = TQString::tqfromLatin1("%1x%2@%3") TQString status = TQString::fromLatin1("%1x%2@%3")
.tqarg(tab->finfo.image[tab->current].w) .tqarg(tab->finfo.image[tab->current].w)
.tqarg(tab->finfo.image[tab->current].h) .tqarg(tab->finfo.image[tab->current].h)
.tqarg(tab->finfo.image[tab->current].bpp); .tqarg(tab->finfo.image[tab->current].bpp);
@ -1667,7 +1667,7 @@ void SQ_GLWidget::calcFrameLabelWidth()
#ifndef KSQUIRREL_PART #ifndef KSQUIRREL_PART
SQ_GLView::window()->sbarWidget("SBFrame")->setFixedWidth( SQ_GLView::window()->sbarWidget("SBFrame")->setFixedWidth(
SQ_GLView::window()->sbarWidget("SBFrame")->fontMetrics() SQ_GLView::window()->sbarWidget("SBFrame")->fontMetrics()
.boundingRect(TQString::tqfromLatin1("0%1/0%2").tqarg(tab->total).tqarg(tab->total)).width()); .boundingRect(TQString::fromLatin1("0%1/0%2").tqarg(tab->total).tqarg(tab->total)).width());
#endif #endif
} }
@ -1680,9 +1680,9 @@ void SQ_GLWidget::calcFrameLabelWidth()
void SQ_GLWidget::frameChanged() void SQ_GLWidget::frameChanged()
{ {
#ifndef KSQUIRREL_PART #ifndef KSQUIRREL_PART
SQ_GLView::window()->sbarWidget("SBFrame")->setText(TQString::tqfromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total)); SQ_GLView::window()->sbarWidget("SBFrame")->setText(TQString::fromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total));
#else #else
t_glv.sbarWidget("SBFrame")->setText(TQString::tqfromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total)); t_glv.sbarWidget("SBFrame")->setText(TQString::fromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total));
#endif #endif
} }

@ -296,7 +296,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>

@ -491,7 +491,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -508,7 +508,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -535,7 +535,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -560,7 +560,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>249</width> <width>249</width>
<height>21</height> <height>21</height>
@ -615,7 +615,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>MinimumExpanding</enum> <enum>MinimumExpanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -640,7 +640,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -665,7 +665,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -684,7 +684,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>
@ -709,7 +709,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -728,7 +728,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>

@ -82,7 +82,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>40</height> <height>40</height>
@ -120,7 +120,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -166,7 +166,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>45</height> <height>45</height>
@ -221,7 +221,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>26</height> <height>26</height>
@ -251,7 +251,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>30</height> <height>30</height>
@ -289,7 +289,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>30</height> <height>30</height>
@ -352,7 +352,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>14</height> <height>14</height>
@ -390,7 +390,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>10</height> <height>10</height>
@ -452,7 +452,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>11</height> <height>11</height>
@ -514,7 +514,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>25</height> <height>25</height>
@ -552,7 +552,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>14</height> <height>14</height>
@ -694,7 +694,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>35</height> <height>35</height>
@ -740,7 +740,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>10</height> <height>10</height>
@ -786,7 +786,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>10</height> <height>10</height>
@ -832,7 +832,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>60</height> <height>60</height>
@ -870,7 +870,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>35</height> <height>35</height>
@ -943,7 +943,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>41</height> <height>41</height>
@ -973,7 +973,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>25</height> <height>25</height>
@ -1011,7 +1011,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>75</height> <height>75</height>
@ -1066,7 +1066,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>11</width> <width>11</width>
<height>113</height> <height>113</height>
@ -1104,7 +1104,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>71</height> <height>71</height>
@ -1124,7 +1124,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -1149,7 +1149,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>285</width> <width>285</width>
<height>16</height> <height>16</height>
@ -1316,7 +1316,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>140</width> <width>140</width>
<height>0</height> <height>0</height>
@ -1333,7 +1333,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -1360,7 +1360,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>
@ -1385,7 +1385,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -1402,7 +1402,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>
@ -1421,7 +1421,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>160</width> <width>160</width>
<height>160</height> <height>160</height>
@ -1438,7 +1438,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>16</height> <height>16</height>

@ -49,7 +49,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>470</width> <width>470</width>
<height>20</height> <height>20</height>
@ -81,7 +81,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>10</height> <height>10</height>
@ -602,7 +602,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>tqStatus:</string> <string>Status:</string>
</property> </property>
<property name="tqalignment"> <property name="tqalignment">
<set>AlignTop|AlignRight</set> <set>AlignTop|AlignRight</set>
@ -618,7 +618,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>210</width> <width>210</width>
<height>16</height> <height>16</height>
@ -813,7 +813,7 @@
</widget> </widget>
<widget class="TQLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>texttqStatus</cstring> <cstring>textStatus</cstring>
</property> </property>
<property name="text"> <property name="text">
<string></string> <string></string>
@ -831,7 +831,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>205</width> <width>205</width>
<height>16</height> <height>16</height>

@ -69,11 +69,11 @@ void SQ_ImageProperties::setParams(TQStringList &l)
int errors = (*it).toInt(); ++it; int errors = (*it).toInt(); ++it;
textFrames->setText(*it); ++it; textFrames->setText(*it); ++it;
textFrame->setText(*it); ++it; textFrame->setText(*it); ++it;
TQString s = TQString::tqfromLatin1("%1").tqarg(i18n("1 error", "%n errors", errors)); TQString s = TQString::fromLatin1("%1").tqarg(i18n("1 error", "%n errors", errors));
texttqStatus->setText((errors)?s:TQString()); textStatus->setText((errors)?s:TQString());
textStatusIcon->setPixmap((errors)?error:ok); textStatusIcon->setPixmap((errors)?error:ok);
s = TQString::tqfromLatin1("%1%2").tqarg(*it).tqarg(i18n(" ms.")); s = TQString::fromLatin1("%1%2").tqarg(*it).tqarg(i18n(" ms."));
textDelay->setText(s); textDelay->setText(s);
} }
@ -162,9 +162,9 @@ void SQ_ImageProperties::setMetaInfo(TQValueVector<TQPair<TQString,TQString> > m
for(TQValueVector<TQPair<TQString,TQString> >::iterator it = meta.begin();it != itEnd;++it) for(TQValueVector<TQPair<TQString,TQString> >::iterator it = meta.begin();it != itEnd;++it)
{ {
if(after) if(after)
item = new TQListViewItem(listMeta, after, (*it).first+TQString::tqfromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' '))); item = new TQListViewItem(listMeta, after, (*it).first+TQString::fromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' ')));
else else
after = item = new TQListViewItem(listMeta, (*it).first+TQString::tqfromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' '))); after = item = new TQListViewItem(listMeta, (*it).first+TQString::fromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' ')));
listMeta->insertItem(item); listMeta->insertItem(item);
} }

@ -252,8 +252,8 @@ void SQ_LibraryHandler::add(TQStringList &foundLibraries)
libtmp.lib->load(); libtmp.lib->load();
// resolve create() and destroy() functions // resolve create() and destroy() functions
libtmp.codec_create = (fmt_codec_base*(*)())(libtmp.lib)->resolve(TQString::tqfromLatin1("codec_create")); libtmp.codec_create = (fmt_codec_base*(*)())(libtmp.lib)->resolve(TQString::fromLatin1("codec_create"));
libtmp.codec_destroy = (void (*)(fmt_codec_base*))(libtmp.lib)->resolve(TQString::tqfromLatin1("codec_destroy")); libtmp.codec_destroy = (void (*)(fmt_codec_base*))(libtmp.lib)->resolve(TQString::fromLatin1("codec_destroy"));
// couldn't resolve - corrupted library ? // couldn't resolve - corrupted library ?
if(!libtmp.codec_create || !libtmp.codec_destroy) if(!libtmp.codec_create || !libtmp.codec_destroy)

@ -150,7 +150,7 @@ int main(int argc, char *argv[])
} }
} }
KGlobal::dirs()->addResourceType("data", KStandardDirs::kde_default("data") + TQString::tqfromLatin1("ksquirrel")); KGlobal::dirs()->addResourceType("data", KStandardDirs::kde_default("data") + TQString::fromLatin1("ksquirrel"));
SQ_SplashScreen *splash = 0; SQ_SplashScreen *splash = 0;

@ -419,7 +419,7 @@ void SQ_CategoryBrowserMenu::dragEnterEvent( TQDragEnterEvent *ev )
void SQ_CategoryBrowserMenu::dropEvent( TQDropEvent *ev ) void SQ_CategoryBrowserMenu::dropEvent( TQDropEvent *ev )
{ {
KFileItem item( path(), TQString::tqfromLatin1( "inode/directory" ), KFileItem::Unknown ); KFileItem item( path(), TQString::fromLatin1( "inode/directory" ), KFileItem::Unknown );
KonqOperations::doDrop( &item, path(), ev, this ); KonqOperations::doDrop( &item, path(), ev, this );
KPanelMenu::dropEvent(ev); KPanelMenu::dropEvent(ev);
// ### TODO: Update list // ### TODO: Update list

@ -130,7 +130,7 @@ void SQ_MountView::reload(bool current)
fi->setText(colum++, (*it)->mountType()); fi->setText(colum++, (*it)->mountType());
if(m_columns & OPT_COL_OPTIONS) if(m_columns & OPT_COL_OPTIONS)
fi->setText(colum, (*it)->mountOptions().join(TQString::tqfromLatin1(", "))); fi->setText(colum, (*it)->mountOptions().join(TQString::fromLatin1(", ")));
} }
} }
} }

@ -126,7 +126,7 @@ void SQ_MultiBar::raiseWidget(int id)
void SQ_MultiBar::updateLayout() void SQ_MultiBar::updateLayout()
{ {
setFixedWidth(mt->tqsizeHint().width()); setFixedWidth(mt->sizeHint().width());
stack->hide(); stack->hide();
} }

@ -280,7 +280,7 @@ void SQ_PreviewWidget::slotDownloadResult(const KURL &url)
int w = finfo->image[0].w; int w = finfo->image[0].w;
int h = finfo->image[0].h; int h = finfo->image[0].h;
dimstring = TQString::tqfromLatin1("%1x%2").tqarg(w).tqarg(h); dimstring = TQString::fromLatin1("%1x%2").tqarg(w).tqarg(h);
const int wh = w * h; const int wh = w * h;
unsigned char t; unsigned char t;

@ -34,7 +34,7 @@ void SQ_StorageFile::writeStorageFileAsString(const TQString &path, const KURL &
content = inpath.prettyURL(); content = inpath.prettyURL();
KMD5 md5(TQFile::encodeName(inpath.prettyURL()).data()); KMD5 md5(TQFile::encodeName(inpath.prettyURL()).data());
TQFile file(path + TQString::tqfromLatin1(".") + TQString(md5.hexDigest())); TQFile file(path + TQString::fromLatin1(".") + TQString(md5.hexDigest()));
if(file.open(IO_WriteOnly)) if(file.open(IO_WriteOnly))
{ {

@ -96,11 +96,11 @@ void SQ_TreeViewItem::setText(int column, const TQString &text)
TQString s; TQString s;
if(use_c1 && use_c2) // files + dirs: show these two values anyway if(use_c1 && use_c2) // files + dirs: show these two values anyway
s = TQString::tqfromLatin1(" [%1/%2]").tqarg(count_dirs).tqarg(count_files); s = TQString::fromLatin1(" [%1/%2]").tqarg(count_dirs).tqarg(count_files);
else if(use_c1 && count_files) // files, file count is > 0 else if(use_c1 && count_files) // files, file count is > 0
s = TQString::tqfromLatin1(" [%1]").tqarg(count_files); s = TQString::fromLatin1(" [%1]").tqarg(count_files);
else if(use_c2 && count_dirs) // dirs, dir count is > 0 else if(use_c2 && count_dirs) // dirs, dir count is > 0
s = TQString::tqfromLatin1(" [%1]").tqarg(count_dirs); s = TQString::fromLatin1(" [%1]").tqarg(count_dirs);
KFileTreeViewItem::setText(column, text + s); KFileTreeViewItem::setText(column, text + s);
} }

@ -34,7 +34,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>
@ -117,7 +117,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>

@ -79,7 +79,7 @@ bool SQ_Dir::mkdir(const TQString &relpath)
void SQ_Dir::setRoot(const TQString &name) void SQ_Dir::setRoot(const TQString &name)
{ {
m_root = TQDir::cleanDirPath(homeDirPath() + TQDir::separator() + TQString::tqfromLatin1(".ksquirrel")); m_root = TQDir::cleanDirPath(homeDirPath() + TQDir::separator() + TQString::fromLatin1(".ksquirrel"));
TQDir::mkdir(m_root); TQDir::mkdir(m_root);
m_root = TQDir::cleanDirPath(m_root + TQDir::separator() + name); m_root = TQDir::cleanDirPath(m_root + TQDir::separator() + name);

@ -179,7 +179,7 @@ void SQ_DirOperator::slotFoundMountPoint(const unsigned long &kbSize,
KSquirrel::app()->diskProgress()->setTotalSteps(kbSize); KSquirrel::app()->diskProgress()->setTotalSteps(kbSize);
KSquirrel::app()->diskProgress()->setIndicator(kbSize-kbAvail); // kbSize != kbAvail+kbUsed KSquirrel::app()->diskProgress()->setIndicator(kbSize-kbAvail); // kbSize != kbAvail+kbUsed
KSquirrel::app()->sbarWidget("diskSpace")->setText(TQString::tqfromLatin1("%1: %2/%3") KSquirrel::app()->sbarWidget("diskSpace")->setText(TQString::fromLatin1("%1: %2/%3")
.tqarg(mount) .tqarg(mount)
.tqarg(KIO::convertSizeFromKB(kbAvail)) .tqarg(KIO::convertSizeFromKB(kbAvail))
.tqarg(KIO::convertSizeFromKB(kbSize))); .tqarg(KIO::convertSizeFromKB(kbSize)));

@ -73,17 +73,17 @@ TQString SQ_DirThumbs::absPath(const KURL &relurl)
{ {
KMD5 md5(TQString(TQFile::encodeName(relurl.prettyURL()))); KMD5 md5(TQString(TQFile::encodeName(relurl.prettyURL())));
TQString ext = TQString::tqfromLatin1(".%1").tqarg(sqdirThumbFormat); TQString ext = TQString::fromLatin1(".%1").tqarg(sqdirThumbFormat);
return m_orig + TQDir::separator() + TQString(md5.hexDigest()) + ext.lower(); return m_orig + TQDir::separator() + TQString(md5.hexDigest()) + ext.lower();
} }
void SQ_DirThumbs::setRoot() void SQ_DirThumbs::setRoot()
{ {
m_orig = TQDir::cleanDirPath(homeDirPath() + TQDir::separator() + TQString::tqfromLatin1(".thumbnails")); m_orig = TQDir::cleanDirPath(homeDirPath() + TQDir::separator() + TQString::fromLatin1(".thumbnails"));
TQDir::mkdir(m_orig); TQDir::mkdir(m_orig);
m_orig = TQDir::cleanDirPath(m_orig + TQDir::separator() + TQString::tqfromLatin1("normal")); m_orig = TQDir::cleanDirPath(m_orig + TQDir::separator() + TQString::fromLatin1("normal"));
TQDir::mkdir(m_orig); TQDir::mkdir(m_orig);
} }

@ -138,7 +138,7 @@ void SQ_DragProvider::start()
text = text + *sit + '\n'; text = text + *sit + '\n';
} }
text += TQString::tqfromLatin1("%1 %2").tqarg(i18n("Total")).tqarg(i18n("1 file", "%n files", count)); text += TQString::fromLatin1("%1 %2").tqarg(i18n("Total")).tqarg(i18n("1 file", "%n files", count));
TQFontMetrics ms(source->font()); TQFontMetrics ms(source->font());
TQRect r = ms.boundingRect(0, 0, 1, 1, flags, text); TQRect r = ms.boundingRect(0, 0, 1, 1, flags, text);

@ -30,7 +30,7 @@ SQ_ErrorString::SQ_ErrorString(TQObject *parent) : TQObject(parent)
m_instance = this; m_instance = this;
// fill map with translated messages // fill map with translated messages
messages.insert(SQE_OK, TQString::tqfromLatin1("OK")); messages.insert(SQE_OK, TQString::fromLatin1("OK"));
messages.insert(SQE_R_NOFILE, i18n("cannot open file for reading")); messages.insert(SQE_R_NOFILE, i18n("cannot open file for reading"));
messages.insert(SQE_R_BADFILE, i18n("file corrupted")); messages.insert(SQE_R_BADFILE, i18n("file corrupted"));
messages.insert(SQE_R_NOMEMORY, i18n("no memory")); messages.insert(SQE_R_NOMEMORY, i18n("no memory"));

@ -171,7 +171,7 @@ void SQ_ExternalTool::slotAboutToShowMenu()
TQString file = KStringHandler::rsqueeze(item->name(), 30); TQString file = KStringHandler::rsqueeze(item->name(), 30);
// finally, change title // finally, change title
TQString final = (items.count() == 1 || items.count() == 0) ? file : (file + TQString::tqfromLatin1(" (+%1)").tqarg(items.count()-1)); TQString final = (items.count() == 1 || items.count() == 0) ? file : (file + TQString::fromLatin1(" (+%1)").tqarg(items.count()-1));
menu->changeTitle(final); menu->changeTitle(final);
} }

@ -32,7 +32,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>65</width> <width>65</width>
<height>20</height> <height>20</height>
@ -162,7 +162,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>130</height> <height>130</height>
@ -267,7 +267,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -301,7 +301,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -351,7 +351,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>

@ -107,8 +107,8 @@ void SQ_FileThumbView::insertItem(KFileItem *i)
TQPixmap mimeall = i->pixmap(SQ_ThumbnailSize::smallest()); TQPixmap mimeall = i->pixmap(SQ_ThumbnailSize::smallest());
TQPixmap thumbnail(pixelSize.width(), pixelSize.height()); TQPixmap thumbnail(pixelSize.width(), pixelSize.height());
TQPainter painter(&thumbnail); TQPainter painter(&thumbnail);
painter.setBrush(tqcolorGroup().base()); painter.setBrush(colorGroup().base());
painter.setPen(tqcolorGroup().highlight()); painter.setPen(colorGroup().highlight());
painter.drawRect(0, 0, pixelSize.width(), pixelSize.height()); painter.drawRect(0, 0, pixelSize.width(), pixelSize.height());
painter.drawPixmap((pixelSize.width()-mimeall.width())/2, (pixelSize.height()-mimeall.height())/2, mimeall); painter.drawPixmap((pixelSize.width()-mimeall.width())/2, (pixelSize.height()-mimeall.height())/2, mimeall);
item = new SQ_FileThumbViewItem(this, i->text(), thumbnail, i); item = new SQ_FileThumbViewItem(this, i->text(), thumbnail, i);
@ -147,8 +147,8 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
TQPainter painter; TQPainter painter;
painter.begin(&newpix); painter.begin(&newpix);
painter.setPen(tqcolorGroup().highlight()); painter.setPen(colorGroup().highlight());
painter.setBrush(tqcolorGroup().base()); painter.setBrush(colorGroup().base());
// draw bounding rect // draw bounding rect
painter.drawRect(0, 0, W, H); painter.drawRect(0, 0, W, H);
@ -163,9 +163,9 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
int rest = H-W-2; int rest = H-W-2;
painter.setPen(tqcolorGroup().text()); painter.setPen(colorGroup().text());
if(t.w && t.h) painter.drawText(4, W+rest/2-12, 100, 12, 0, TQString::tqfromLatin1("%1x%2").tqarg(t.w).tqarg(t.h)); if(t.w && t.h) painter.drawText(4, W+rest/2-12, 100, 12, 0, TQString::fromLatin1("%1x%2").tqarg(t.w).tqarg(t.h));
painter.drawText(4, W+rest/2+1, 100, 12, 0, KIO::convertSize(fileItem->size())); painter.drawText(4, W+rest/2+1, 100, 12, 0, KIO::convertSize(fileItem->size()));
painter.end(); painter.end();
@ -177,8 +177,8 @@ void SQ_FileThumbView::setThumbnailPixmap(const KFileItem* fileItem, const SQ_Th
TQPainter painter; TQPainter painter;
painter.begin(&newpix); painter.begin(&newpix);
painter.setPen(tqcolorGroup().highlight()); painter.setPen(colorGroup().highlight());
painter.setBrush(tqcolorGroup().base()); painter.setBrush(colorGroup().base());
// draw bounding rect // draw bounding rect
painter.drawRect(0, 0, pixelSize.width(), pixelSize.height()); painter.drawRect(0, 0, pixelSize.width(), pixelSize.height());
@ -466,8 +466,8 @@ void SQ_FileThumbView::rebuildPendingPixmap(bool dir)
p->resize(pixelSize.width(), pixelSize.height()); p->resize(pixelSize.width(), pixelSize.height());
TQPainter painter(p); TQPainter painter(p);
painter.setBrush(tqcolorGroup().base()); painter.setBrush(colorGroup().base());
painter.setPen(tqcolorGroup().highlight()); painter.setPen(colorGroup().highlight());
painter.drawRect(0, 0, pixelSize.width(), pixelSize.height()); painter.drawRect(0, 0, pixelSize.width(), pixelSize.height());
painter.drawPixmap((pixelSize.width() - w->width())/2, (pixelSize.height() - w->height())/2, *w); painter.drawPixmap((pixelSize.width() - w->width())/2, (pixelSize.height() - w->height())/2, *w);
} }

@ -67,7 +67,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>411</width> <width>411</width>
<height>20</height> <height>20</height>
@ -186,7 +186,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -220,7 +220,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>22</width> <width>22</width>
<height>22</height> <height>22</height>
@ -253,7 +253,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>145</height> <height>145</height>

@ -132,7 +132,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>431</width> <width>431</width>
<height>21</height> <height>21</height>

@ -115,8 +115,8 @@ void SQ_GLView::createContent()
TQLabel *sqSBFile = new KSqueezedTextLabel(TQString(), 0, "SBFile"); TQLabel *sqSBFile = new KSqueezedTextLabel(TQString(), 0, "SBFile");
names.insert("SBFile", sqSBFile); names.insert("SBFile", sqSBFile);
sqSBFrame->tqsetAlignment(TQt::AlignHCenter | TQt::AlignVCenter | TQt::ExpandTabs); sqSBFrame->setAlignment(TQt::AlignHCenter | TQt::AlignVCenter | TQt::ExpandTabs);
sqSBFile->tqsetAlignment(TQt::AlignRight | TQt::AlignTop); sqSBFile->setAlignment(TQt::AlignRight | TQt::AlignTop);
TQFont font = sqSBFile->font(); TQFont font = sqSBFile->font();
font.setBold(true); font.setBold(true);
sqSBFile->setFont(font); sqSBFile->setFont(font);
@ -198,15 +198,15 @@ void SQ_GLView::restoreGeometry()
*/ */
void SQ_GLView::resetStatusBar() void SQ_GLView::resetStatusBar()
{ {
TQString fl = TQString::tqfromLatin1("----"); TQString fl = TQString::fromLatin1("----");
names["SBGLZoom"]->setText(fl); names["SBGLZoom"]->setText(fl);
names["SBGLAngle"]->setText(fl); names["SBGLAngle"]->setText(fl);
names["SBLoaded"]->setText(fl); names["SBLoaded"]->setText(fl);
names["SBDecodedI"]->setText(TQString::tqfromLatin1("--")); names["SBDecodedI"]->setText(TQString::fromLatin1("--"));
names["SBFile"]->setText(TQString::tqfromLatin1("--------")); names["SBFile"]->setText(TQString::fromLatin1("--------"));
names["SBDecoded"]->setText(fl); names["SBDecoded"]->setText(fl);
names["SBFrame"]->setText(TQString::tqfromLatin1("0/0")); names["SBFrame"]->setText(TQString::fromLatin1("0/0"));
} }
SQ_ToolBar::SQ_ToolBar(TQWidget *parent) : KToolBar(parent) SQ_ToolBar::SQ_ToolBar(TQWidget *parent) : KToolBar(parent)

@ -491,7 +491,7 @@ void SQ_GLWidget::matrixChanged()
float z = (m < 1.0) ? 1.0/m : m; float z = (m < 1.0) ? 1.0/m : m;
// construct zoom // construct zoom
str = TQString::tqfromLatin1("%1% [%2:%3]") str = TQString::fromLatin1("%1% [%2:%3]")
.tqarg(fzoom, 0, 'f', 1) .tqarg(fzoom, 0, 'f', 1)
.tqarg((m < 1.0)?1.0:z, 0, 'f', 1) .tqarg((m < 1.0)?1.0:z, 0, 'f', 1)
.tqarg((m > 1.0)?1.0:z, 0, 'f', 1); .tqarg((m > 1.0)?1.0:z, 0, 'f', 1);
@ -503,7 +503,7 @@ void SQ_GLWidget::matrixChanged()
#endif #endif
// construct rotation angle // construct rotation angle
str = TQString::tqfromLatin1("%1%2 %3 deg") str = TQString::fromLatin1("%1%2 %3 deg")
.tqarg((tab->isflippedV)?"V":"") .tqarg((tab->isflippedV)?"V":"")
.tqarg((tab->isflippedH)?"H":"") .tqarg((tab->isflippedH)?"H":"")
.tqarg(tab->curangle, 0, 'f', 1); .tqarg(tab->curangle, 0, 'f', 1);
@ -1598,7 +1598,7 @@ void SQ_GLWidget::decode()
} }
} }
id = images->insertItem(TQString::tqfromLatin1("#%1 [%2x%3@%4]").tqarg(tab->current+1).tqarg(im->w).tqarg(im->h).tqarg(im->bpp)); id = images->insertItem(TQString::fromLatin1("#%1 [%2x%3@%4]").tqarg(tab->current+1).tqarg(im->w).tqarg(im->h).tqarg(im->bpp));
images->setItemParameter(id, tab->current); images->setItemParameter(id, tab->current);
@ -1655,7 +1655,7 @@ void SQ_GLWidget::paletteChange(const TQPalette &oldPalette)
if(SQ_Config::instance()->readNumEntry("GL view background type", 1) == 0) if(SQ_Config::instance()->readNumEntry("GL view background type", 1) == 0)
{ {
TQColor color = tqcolorGroup().color(TQColorGroup::Base); TQColor color = colorGroup().color(TQColorGroup::Base);
qglClearColor(color); qglClearColor(color);
updateGL(); updateGL();
} }

@ -91,14 +91,14 @@ void SQ_GLWidget::createActions()
pAFull = new KToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full"); pAFull = new KToggleAction(TQString(), 0, 0, 0, ac, "SQ GL Full");
TQString squirrel_zoom_actions = TQString::tqfromLatin1("squirrel_zoom_actions"); TQString squirrel_zoom_actions = TQString::fromLatin1("squirrel_zoom_actions");
pAZoomW->setExclusiveGroup(squirrel_zoom_actions); pAZoomW->setExclusiveGroup(squirrel_zoom_actions);
pAZoomH->setExclusiveGroup(squirrel_zoom_actions); pAZoomH->setExclusiveGroup(squirrel_zoom_actions);
pAZoomWH->setExclusiveGroup(squirrel_zoom_actions); pAZoomWH->setExclusiveGroup(squirrel_zoom_actions);
pAZoom100->setExclusiveGroup(squirrel_zoom_actions); pAZoom100->setExclusiveGroup(squirrel_zoom_actions);
pAZoomLast->setExclusiveGroup(squirrel_zoom_actions); pAZoomLast->setExclusiveGroup(squirrel_zoom_actions);
TQString squirrel_selection_type = TQString::tqfromLatin1("squirrel_selection_type"); TQString squirrel_selection_type = TQString::fromLatin1("squirrel_selection_type");
pASelectionEllipse->setExclusiveGroup(squirrel_selection_type); pASelectionEllipse->setExclusiveGroup(squirrel_selection_type);
pASelectionRect->setExclusiveGroup(squirrel_selection_type); pASelectionRect->setExclusiveGroup(squirrel_selection_type);
@ -236,17 +236,17 @@ void SQ_GLWidget::slotProperties()
// save tab->current image parameters and some additioanl information // save tab->current image parameters and some additioanl information
// in list // in list
list << tab->quickImageInfo list << tab->quickImageInfo
<< TQString::tqfromLatin1("%1x%2").tqarg(tab->finfo.image[tab->current].w).tqarg(tab->finfo.image[tab->current].h) << TQString::fromLatin1("%1x%2").tqarg(tab->finfo.image[tab->current].w).tqarg(tab->finfo.image[tab->current].h)
<< TQString::tqfromLatin1("%1").tqarg(tab->finfo.image[tab->current].bpp) << TQString::fromLatin1("%1").tqarg(tab->finfo.image[tab->current].bpp)
<< tab->finfo.image[tab->current].colorspace << tab->finfo.image[tab->current].colorspace
<< tab->finfo.image[tab->current].compression << tab->finfo.image[tab->current].compression
<< sz << sz
<< TQString::tqfromLatin1("%1").tqarg((double)real_size / tab->fmt_size, 0, 'f', 2) << TQString::fromLatin1("%1").tqarg((double)real_size / tab->fmt_size, 0, 'f', 2)
<< ((tab->finfo.image[tab->current].interlaced) ? i18n("yes") : i18n("no")) << ((tab->finfo.image[tab->current].interlaced) ? i18n("yes") : i18n("no"))
<< TQString::tqfromLatin1("%1").tqarg(errors) << TQString::fromLatin1("%1").tqarg(errors)
<< TQString::tqfromLatin1("%1").tqarg(tab->finfo.image.size()) << TQString::fromLatin1("%1").tqarg(tab->finfo.image.size())
<< TQString::tqfromLatin1("#%1").tqarg(tab->current+1) << TQString::fromLatin1("#%1").tqarg(tab->current+1)
<< TQString::tqfromLatin1("%1").tqarg(tab->finfo.image[tab->current].delay); << TQString::fromLatin1("%1").tqarg(tab->finfo.image[tab->current].delay);
// create dialog and setup it // create dialog and setup it
SQ_ImageProperties prop(this); SQ_ImageProperties prop(this);
@ -867,7 +867,7 @@ void SQ_GLWidget::initAccelsAndMenu()
menu->insertItem(i18n("Image"), menuImage); menu->insertItem(i18n("Image"), menuImage);
#define SQ_ADD_KACTION(b) \ #define SQ_ADD_KACTION(b) \
(new KAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::tqfromLatin1("action_%1").tqarg(b))) (new KAction(TQString(), b, TQT_TQOBJECT(this), TQT_SLOT(slotAccelActivated()), ac, TQString::fromLatin1("action_%1").tqarg(b)))
id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate())); id_saveas = menuFile->insertItem(SQ_IconLoader::instance()->loadIcon("filesaveas", KIcon::Desktop, KIcon::SizeSmall), i18n("Save As...") + "\tS", SQ_ADD_KACTION(TQt::Key_S), TQT_SLOT(activate()));
@ -900,13 +900,13 @@ void SQ_GLWidget::initAccelsAndMenu()
menuZoom->insertItem(i18n("Zoom 2x") + "\tCtrl++", SQ_ADD_KACTION(TQt::Key_Plus+CTRL), TQT_SLOT(activate())); menuZoom->insertItem(i18n("Zoom 2x") + "\tCtrl++", SQ_ADD_KACTION(TQt::Key_Plus+CTRL), TQT_SLOT(activate()));
menuZoom->insertItem(i18n("Zoom 1/2x") + "\tCtrl+-", SQ_ADD_KACTION(TQt::Key_Minus+CTRL), TQT_SLOT(activate())); menuZoom->insertItem(i18n("Zoom 1/2x") + "\tCtrl+-", SQ_ADD_KACTION(TQt::Key_Minus+CTRL), TQT_SLOT(activate()));
menuZoom->insertSeparator(); menuZoom->insertSeparator();
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom10016.png")), TQString::tqfromLatin1("100%") + "\t1", SQ_ADD_KACTION(TQt::Key_1), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom10016.png")), TQString::fromLatin1("100%") + "\t1", SQ_ADD_KACTION(TQt::Key_1), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom20016.png")), TQString::tqfromLatin1("200%") + "\t2", SQ_ADD_KACTION(TQt::Key_2), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom20016.png")), TQString::fromLatin1("200%") + "\t2", SQ_ADD_KACTION(TQt::Key_2), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom30016.png")), TQString::tqfromLatin1("300%") + "\t3", SQ_ADD_KACTION(TQt::Key_3), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom30016.png")), TQString::fromLatin1("300%") + "\t3", SQ_ADD_KACTION(TQt::Key_3), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom50016.png")), TQString::tqfromLatin1("500%") + "\t5", SQ_ADD_KACTION(TQt::Key_5), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom50016.png")), TQString::fromLatin1("500%") + "\t5", SQ_ADD_KACTION(TQt::Key_5), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom70016.png")), TQString::tqfromLatin1("700%") + "\t7", SQ_ADD_KACTION(TQt::Key_7), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom70016.png")), TQString::fromLatin1("700%") + "\t7", SQ_ADD_KACTION(TQt::Key_7), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom90016.png")), TQString::tqfromLatin1("900%") + "\t9", SQ_ADD_KACTION(TQt::Key_9), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom90016.png")), TQString::fromLatin1("900%") + "\t9", SQ_ADD_KACTION(TQt::Key_9), TQT_SLOT(activate()));
menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom100016.png")), TQString::tqfromLatin1("1000%") + "\t0", SQ_ADD_KACTION(TQt::Key_0), TQT_SLOT(activate())); menuZoom->insertItem(TQPixmap(locate("data", "images/menu/zoom100016.png")), TQString::fromLatin1("1000%") + "\t0", SQ_ADD_KACTION(TQt::Key_0), TQT_SLOT(activate()));
menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveLeft16.png")), i18n("Move left") + "\tRight", SQ_ADD_KACTION(TQt::Key_Right), TQT_SLOT(activate())); menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveLeft16.png")), i18n("Move left") + "\tRight", SQ_ADD_KACTION(TQt::Key_Right), TQT_SLOT(activate()));
menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveRight16.png")), i18n("Move right") + "\tLeft", SQ_ADD_KACTION(TQt::Key_Left), TQT_SLOT(activate())); menuMove->insertItem(TQPixmap(locate("data", "images/menu/moveRight16.png")), i18n("Move right") + "\tLeft", SQ_ADD_KACTION(TQt::Key_Left), TQT_SLOT(activate()));
@ -1312,7 +1312,7 @@ void SQ_GLWidget::slotChangeTab(int id)
for(;it != itEnd;++it, ++i) for(;it != itEnd;++it, ++i)
{ {
mid = images->insertItem(TQString::tqfromLatin1("#%1 [%2x%3@%4]").tqarg(i+1).tqarg((*it).w).tqarg((*it).h).tqarg((*it).bpp)); mid = images->insertItem(TQString::fromLatin1("#%1 [%2x%3@%4]").tqarg(i+1).tqarg((*it).w).tqarg((*it).h).tqarg((*it).bpp));
images->setItemParameter(mid, i); images->setItemParameter(mid, i);
if(i == tab->current) if(i == tab->current)
@ -1493,7 +1493,7 @@ void SQ_GLWidget::setClearColor()
{ {
// system color // system color
case 0: case 0:
color = tqcolorGroup().color(TQColorGroup::Base); color = colorGroup().color(TQColorGroup::Base);
break; break;
// custom color // custom color
@ -1623,7 +1623,7 @@ void SQ_GLWidget::createMarks()
*/ */
void SQ_GLWidget::updateCurrentFileInfo() void SQ_GLWidget::updateCurrentFileInfo()
{ {
TQString status = TQString::tqfromLatin1("%1x%2@%3") TQString status = TQString::fromLatin1("%1x%2@%3")
.tqarg(tab->finfo.image[tab->current].w) .tqarg(tab->finfo.image[tab->current].w)
.tqarg(tab->finfo.image[tab->current].h) .tqarg(tab->finfo.image[tab->current].h)
.tqarg(tab->finfo.image[tab->current].bpp); .tqarg(tab->finfo.image[tab->current].bpp);
@ -1667,7 +1667,7 @@ void SQ_GLWidget::calcFrameLabelWidth()
#ifndef KSQUIRREL_PART #ifndef KSQUIRREL_PART
SQ_GLView::window()->sbarWidget("SBFrame")->setFixedWidth( SQ_GLView::window()->sbarWidget("SBFrame")->setFixedWidth(
SQ_GLView::window()->sbarWidget("SBFrame")->fontMetrics() SQ_GLView::window()->sbarWidget("SBFrame")->fontMetrics()
.boundingRect(TQString::tqfromLatin1("0%1/0%2").tqarg(tab->total).tqarg(tab->total)).width()); .boundingRect(TQString::fromLatin1("0%1/0%2").tqarg(tab->total).tqarg(tab->total)).width());
#endif #endif
} }
@ -1680,9 +1680,9 @@ void SQ_GLWidget::calcFrameLabelWidth()
void SQ_GLWidget::frameChanged() void SQ_GLWidget::frameChanged()
{ {
#ifndef KSQUIRREL_PART #ifndef KSQUIRREL_PART
SQ_GLView::window()->sbarWidget("SBFrame")->setText(TQString::tqfromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total)); SQ_GLView::window()->sbarWidget("SBFrame")->setText(TQString::fromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total));
#else #else
t_glv.sbarWidget("SBFrame")->setText(TQString::tqfromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total)); t_glv.sbarWidget("SBFrame")->setText(TQString::fromLatin1("%1/%2").tqarg(tab->current+1).tqarg(tab->total));
#endif #endif
} }

@ -296,7 +296,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>16</height> <height>16</height>

@ -44,7 +44,7 @@ void SQ_IconListBox::updateWidth()
((SQ_IconListItem *)i)->expandMinimumWidth(maxWidth + 30); ((SQ_IconListItem *)i)->expandMinimumWidth(maxWidth + 30);
if(verticalScrollBar()->isVisible()) if(verticalScrollBar()->isVisible())
maxWidth += verticalScrollBar()->tqsizeHint().width(); maxWidth += verticalScrollBar()->sizeHint().width();
setFixedWidth(maxWidth + frameWidth()*2 + 30); setFixedWidth(maxWidth + frameWidth()*2 + 30);
mWidthValid = true; mWidthValid = true;

@ -49,7 +49,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>470</width> <width>470</width>
<height>20</height> <height>20</height>
@ -81,7 +81,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>10</height> <height>10</height>
@ -602,7 +602,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string>tqStatus:</string> <string>Status:</string>
</property> </property>
<property name="tqalignment"> <property name="tqalignment">
<set>AlignTop|AlignRight</set> <set>AlignTop|AlignRight</set>
@ -618,7 +618,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>210</width> <width>210</width>
<height>16</height> <height>16</height>
@ -813,7 +813,7 @@
</widget> </widget>
<widget class="TQLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>texttqStatus</cstring> <cstring>textStatus</cstring>
</property> </property>
<property name="text"> <property name="text">
<string></string> <string></string>
@ -831,7 +831,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>205</width> <width>205</width>
<height>16</height> <height>16</height>

@ -69,11 +69,11 @@ void SQ_ImageProperties::setParams(TQStringList &l)
int errors = (*it).toInt(); ++it; int errors = (*it).toInt(); ++it;
textFrames->setText(*it); ++it; textFrames->setText(*it); ++it;
textFrame->setText(*it); ++it; textFrame->setText(*it); ++it;
TQString s = TQString::tqfromLatin1("%1").tqarg(i18n("1 error", "%n errors", errors)); TQString s = TQString::fromLatin1("%1").tqarg(i18n("1 error", "%n errors", errors));
texttqStatus->setText((errors)?s:TQString()); textStatus->setText((errors)?s:TQString());
textStatusIcon->setPixmap((errors)?error:ok); textStatusIcon->setPixmap((errors)?error:ok);
s = TQString::tqfromLatin1("%1%2").tqarg(*it).tqarg(i18n(" ms.")); s = TQString::fromLatin1("%1%2").tqarg(*it).tqarg(i18n(" ms."));
textDelay->setText(s); textDelay->setText(s);
} }
@ -162,9 +162,9 @@ void SQ_ImageProperties::setMetaInfo(TQValueVector<TQPair<TQString,TQString> > m
for(TQValueVector<TQPair<TQString,TQString> >::iterator it = meta.begin();it != itEnd;++it) for(TQValueVector<TQPair<TQString,TQString> >::iterator it = meta.begin();it != itEnd;++it)
{ {
if(after) if(after)
item = new TQListViewItem(listMeta, after, (*it).first+TQString::tqfromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' '))); item = new TQListViewItem(listMeta, after, (*it).first+TQString::fromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' ')));
else else
after = item = new TQListViewItem(listMeta, (*it).first+TQString::tqfromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' '))); after = item = new TQListViewItem(listMeta, (*it).first+TQString::fromLatin1(" "), (*it).second.replace(TQChar('\n'), TQChar(' ')));
listMeta->insertItem(item); listMeta->insertItem(item);
} }

@ -252,8 +252,8 @@ void SQ_LibraryHandler::add(TQStringList &foundLibraries)
libtmp.lib->load(); libtmp.lib->load();
// resolve create() and destroy() functions // resolve create() and destroy() functions
libtmp.codec_create = (fmt_codec_base*(*)())(libtmp.lib)->resolve(TQString::tqfromLatin1("codec_create")); libtmp.codec_create = (fmt_codec_base*(*)())(libtmp.lib)->resolve(TQString::fromLatin1("codec_create"));
libtmp.codec_destroy = (void (*)(fmt_codec_base*))(libtmp.lib)->resolve(TQString::tqfromLatin1("codec_destroy")); libtmp.codec_destroy = (void (*)(fmt_codec_base*))(libtmp.lib)->resolve(TQString::fromLatin1("codec_destroy"));
// couldn't resolve - corrupted library ? // couldn't resolve - corrupted library ?
if(!libtmp.codec_create || !libtmp.codec_destroy) if(!libtmp.codec_create || !libtmp.codec_destroy)

@ -21,13 +21,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>10000</width> <width>10000</width>
<height>10000</height> <height>10000</height>
@ -77,7 +77,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>400</width> <width>400</width>
<height>20</height> <height>20</height>
@ -164,7 +164,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -466,7 +466,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>10</height> <height>10</height>
@ -496,7 +496,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>26</width> <width>26</width>
<height>10</height> <height>10</height>
@ -590,7 +590,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>
@ -688,7 +688,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>10</height> <height>10</height>
@ -981,7 +981,7 @@
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>95</width> <width>95</width>
<height>25</height> <height>25</height>
@ -1077,7 +1077,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>2</height> <height>2</height>
@ -1151,7 +1151,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>2</height> <height>2</height>
@ -1243,7 +1243,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>50</height> <height>50</height>
@ -1273,7 +1273,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -1473,7 +1473,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>
@ -1511,7 +1511,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>46</height> <height>46</height>
@ -1659,7 +1659,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>135</height> <height>135</height>
@ -1697,7 +1697,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>90</height> <height>90</height>
@ -1751,7 +1751,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>10</height> <height>10</height>

@ -89,7 +89,7 @@ void SQ_Options::init()
buttonGroupColor->setButton(tp); buttonGroupColor->setButton(tp);
widgetStack4->raiseWidget(tp); widgetStack4->raiseWidget(tp);
kColorSystem->setColor(tqcolorGroup().color(TQColorGroup::Base)); kColorSystem->setColor(colorGroup().color(TQColorGroup::Base));
tp = kconf->readNumEntry("zoom limit", 1); tp = kconf->readNumEntry("zoom limit", 1);
buttonGroupZoomLimit->setButton(tp); buttonGroupZoomLimit->setButton(tp);
@ -292,7 +292,7 @@ void SQ_Options::slotNewCustomTexture( const TQString & path)
if(validPixmap(p1)) if(validPixmap(p1))
{ {
custpixmap = path; custpixmap = path;
textCustomValidate->setText(TQString::tqfromLatin1("%1x%2: OK") textCustomValidate->setText(TQString::fromLatin1("%1x%2: OK")
.tqarg(p1.width()) .tqarg(p1.width())
.tqarg(p1.height())); .tqarg(p1.height()));
} }
@ -324,10 +324,10 @@ void SQ_Options::paletteChange( const TQPalette &oldPalette )
{ {
TQDialog::paletteChange(oldPalette); TQDialog::paletteChange(oldPalette);
kColorSystem->setColor(tqcolorGroup().color(TQColorGroup::Base)); kColorSystem->setColor(colorGroup().color(TQColorGroup::Base));
} }
void SQ_Options::slotSetSystemBack( const TQColor & ) void SQ_Options::slotSetSystemBack( const TQColor & )
{ {
kColorSystem->setColor(tqcolorGroup().color(TQColorGroup::Base)); kColorSystem->setColor(colorGroup().color(TQColorGroup::Base));
} }

@ -163,7 +163,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>70</width> <width>70</width>
<height>16</height> <height>16</height>
@ -211,7 +211,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>445</width> <width>445</width>
<height>16</height> <height>16</height>

@ -40,7 +40,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>220</width> <width>220</width>
<height>26</height> <height>26</height>
@ -100,7 +100,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>175</width> <width>175</width>
<height>16</height> <height>16</height>
@ -280,7 +280,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>186</width> <width>186</width>
<height>16</height> <height>16</height>
@ -316,7 +316,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>145</width> <width>145</width>
<height>16</height> <height>16</height>

@ -17,6 +17,6 @@ void SQ_SlideShowListing::init()
void SQ_SlideShowListing::setFile(int count, const TQString &f) void SQ_SlideShowListing::setFile(int count, const TQString &f)
{ {
textCount->setText(TQString::tqfromLatin1("[%1]").tqarg(count)); textCount->setText(TQString::fromLatin1("[%1]").tqarg(count));
textFile->setText(f); textFile->setText(f);
} }

@ -346,7 +346,7 @@ void SQ_SlideShowWidget::constructMessage()
TQFileInfo fm(path); TQFileInfo fm(path);
TQString s_message; TQString s_message;
if(mes_pos) s_message = TQString::tqfromLatin1("[%1/%2] ").tqarg(current+1).tqarg(total); if(mes_pos) s_message = TQString::fromLatin1("[%1/%2] ").tqarg(current+1).tqarg(total);
if(mes_name) s_message += fm.fileName(); if(mes_name) s_message += fm.fileName();

@ -56,7 +56,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>10</width> <width>10</width>
<height>31</height> <height>31</height>

@ -154,7 +154,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>195</width> <width>195</width>
<height>21</height> <height>21</height>

@ -65,7 +65,7 @@ void SQ_ThumbnailCacheMaster::slotClearMemoryCache()
void SQ_ThumbnailCacheMaster::slotCalcCacheMemory() void SQ_ThumbnailCacheMaster::slotCalcCacheMemory()
{ {
textCacheMemSize->setText(TQString::tqfromLatin1("%1/%2") textCacheMemSize->setText(TQString::fromLatin1("%1/%2")
.tqarg(KIO::convertSize(SQ_PixmapCache::instance()->totalSize())) .tqarg(KIO::convertSize(SQ_PixmapCache::instance()->totalSize()))
.tqarg(KIO::convertSize(SQ_PixmapCache::instance()->cacheLimit()))); .tqarg(KIO::convertSize(SQ_PixmapCache::instance()->cacheLimit())));
} }

@ -257,7 +257,7 @@ void SQ_ThumbnailLoadJob::slotResult(KIO::Job *job)
mState = STATE_PREDOWNLOAD; mState = STATE_PREDOWNLOAD;
continueDownload = false; continueDownload = false;
tmp = new KTempFile(TQString(), TQString::tqfromLatin1(".%1").tqarg(suff), 0600); tmp = new KTempFile(TQString(), TQString::fromLatin1(".%1").tqarg(suff), 0600);
tmp->setAutoDelete(true); tmp->setAutoDelete(true);
tmp->close(); tmp->close();

@ -134,7 +134,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>

@ -31,10 +31,10 @@ void SQ_ViewCache::init()
if(itemafter) if(itemafter)
item = new TQListViewItem(listCache, itemafter, s, item = new TQListViewItem(listCache, itemafter, s,
TQString(), TQString::tqfromLatin1("%1x%2").tqarg(th.w).tqarg(th.h)); TQString(), TQString::fromLatin1("%1x%2").tqarg(th.w).tqarg(th.h));
else else
item = new TQListViewItem(listCache, s, item = new TQListViewItem(listCache, s,
TQString(), TQString::tqfromLatin1("%1x%2").tqarg(th.w).tqarg(th.h)); TQString(), TQString::fromLatin1("%1x%2").tqarg(th.w).tqarg(th.h));
item->setPixmap(1, it.data().mime); item->setPixmap(1, it.data().mime);

Loading…
Cancel
Save