diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
commit | 769e63d24adf5c844137484f06a972fcce732d6a (patch) | |
tree | 5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/pref.cpp | |
parent | 0a8af92185eac74d48da1225e6053a0d66c078f5 (diff) | |
download | kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip |
TQt4 port kmplayer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/pref.cpp')
-rw-r--r-- | src/pref.cpp | 746 |
1 files changed, 373 insertions, 373 deletions
diff --git a/src/pref.cpp b/src/pref.cpp index ff39751..670f4aa 100644 --- a/src/pref.cpp +++ b/src/pref.cpp @@ -23,24 +23,24 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif -#include <qlayout.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qstringlist.h> -#include <qcombobox.h> -#include <qlineedit.h> -#include <qgroupbox.h> -#include <qwhatsthis.h> -#include <qtabwidget.h> -#include <qslider.h> -#include <qbuttongroup.h> -#include <qspinbox.h> -#include <qmessagebox.h> -#include <qmap.h> -#include <qtimer.h> -#include <qfont.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> +#include <tqstringlist.h> +#include <tqcombobox.h> +#include <tqlineedit.h> +#include <tqgroupbox.h> +#include <tqwhatsthis.h> +#include <tqtabwidget.h> +#include <tqslider.h> +#include <tqbuttongroup.h> +#include <tqspinbox.h> +#include <tqmessagebox.h> +#include <tqmap.h> +#include <tqtimer.h> +#include <tqfont.h> #include <klocale.h> #include <kdebug.h> @@ -66,14 +66,14 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti : KDialogBase (IconList, i18n ("Preferences"), Help|Default|Ok|Apply|Cancel, Ok, player->view (), 0, false) { - QFrame *frame; - QTabWidget * tab; - QStringList hierarchy; // typo? :) - QVBoxLayout *vlay; - - frame = addPage(i18n("General Options"), QString(), KGlobal::iconLoader()->loadIcon (QString ("kmplayer"), KIcon::NoGroup, 32)); - vlay = new QVBoxLayout(frame, marginHint(), spacingHint()); - tab = new QTabWidget (frame); + TQFrame *frame; + TQTabWidget * tab; + TQStringList hierarchy; // typo? :) + TQVBoxLayout *vlay; + + frame = addPage(i18n("General Options"), TQString(), KGlobal::iconLoader()->loadIcon (TQString ("kmplayer"), KIcon::NoGroup, 32)); + vlay = new TQVBoxLayout(frame, marginHint(), spacingHint()); + tab = new TQTabWidget (frame); vlay->addWidget (tab); m_GeneralPageGeneral = new PrefGeneralPageGeneral (tab, settings); tab->insertTab (m_GeneralPageGeneral, i18n("General")); @@ -84,17 +84,17 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti tab->insertTab (m_GeneralPageOutput, i18n("Output")); entries.insert (i18n("General Options"), tab); - frame = addPage (i18n ("Source"), QString(), KGlobal::iconLoader()->loadIcon (QString ("source"), KIcon::NoGroup, 32)); - vlay = new QVBoxLayout (frame, marginHint(), spacingHint()); - tab = new QTabWidget (frame); + frame = addPage (i18n ("Source"), TQString(), KGlobal::iconLoader()->loadIcon (TQString ("source"), KIcon::NoGroup, 32)); + vlay = new TQVBoxLayout (frame, marginHint(), spacingHint()); + tab = new TQTabWidget (frame); vlay->addWidget (tab); m_SourcePageURL = new PrefSourcePageURL (tab); tab->insertTab (m_SourcePageURL, i18n ("URL")); entries.insert (i18n("Source"), tab); - frame = addPage (i18n ("Recording"), QString(), KGlobal::iconLoader()->loadIcon (QString ("video"), KIcon::NoGroup, 32)); - vlay = new QVBoxLayout (frame, marginHint(), spacingHint()); - tab = new QTabWidget (frame); + frame = addPage (i18n ("Recording"), TQString(), KGlobal::iconLoader()->loadIcon (TQString ("video"), KIcon::NoGroup, 32)); + vlay = new TQVBoxLayout (frame, marginHint(), spacingHint()); + tab = new TQTabWidget (frame); vlay->addWidget (tab); int recorders_count = 3; @@ -120,9 +120,9 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti tab->setCurrentPage (0); entries.insert (i18n("Recording"), tab); - frame = addPage (i18n ("Output Plugins"), QString(), KGlobal::iconLoader()->loadIcon (QString ("image"), KIcon::NoGroup, 32)); - vlay = new QVBoxLayout(frame, marginHint(), spacingHint()); - tab = new QTabWidget (frame); + frame = addPage (i18n ("Output Plugins"), TQString(), KGlobal::iconLoader()->loadIcon (TQString ("image"), KIcon::NoGroup, 32)); + vlay = new TQVBoxLayout(frame, marginHint(), spacingHint()); + tab = new TQTabWidget (frame); vlay->addWidget (tab); m_OPPagePostproc = new PrefOPPagePostProc (tab); tab->insertTab (m_OPPagePostproc, i18n ("Postprocessing")); @@ -132,37 +132,37 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti addPrefPage (p); - connect (this, SIGNAL (defaultClicked ()), SLOT (confirmDefaults ())); + connect (this, TQT_SIGNAL (defaultClicked ()), TQT_SLOT (confirmDefaults ())); } KDE_NO_EXPORT void Preferences::setPage (const char * name) { - QObject * o = child (name, "QFrame"); + TQObject * o = child (name, TQFRAME_OBJECT_NAME_STRING); if (!o) return; - QFrame * page = static_cast <QFrame *> (o); - QWidget * w = page->parentWidget (); - while (w && !w->inherits ("QTabWidget")) - w = w->parentWidget (); + TQFrame * page = static_cast <TQFrame *> (TQT_TQWIDGET(o)); + TQWidget * w = page->tqparentWidget (); + while (w && !w->inherits (TQTABWIDGET_OBJECT_NAME_STRING)) + w = w->tqparentWidget (); if (!w) return; - QTabWidget * t = static_cast <QTabWidget*> (w); + TQTabWidget * t = static_cast <TQTabWidget*> (w); t->setCurrentPage (t->indexOf(page)); - if (!t->parentWidget() || !t->parentWidget()->inherits ("QFrame")) + if (!t->tqparentWidget() || !t->tqparentWidget()->inherits (TQFRAME_OBJECT_NAME_STRING)) return; - showPage (pageIndex (t->parentWidget ())); + showPage (pageIndex (t->tqparentWidget ())); } KDE_NO_EXPORT void Preferences::addPrefPage (PreferencesPage * page) { - QString item, subitem, icon; - QFrame * frame; - QTabWidget * tab; - QVBoxLayout *vlay; + TQString item, subitem, icon; + TQFrame * frame; + TQTabWidget * tab; + TQVBoxLayout *vlay; page->prefLocation (item, icon, subitem); if (item.isEmpty ()) return; - QMap<QString, QTabWidget *>::iterator en_it = entries.find (item); + TQMap<TQString, TQTabWidget *>::iterator en_it = entries.tqfind (item); if (en_it == entries.end ()) { - frame = addPage (item, QString(), KGlobal::iconLoader()->loadIcon ((icon), KIcon::NoGroup, 32)); - vlay = new QVBoxLayout (frame, marginHint(), spacingHint()); - tab = new QTabWidget (frame); + frame = addPage (item, TQString(), KGlobal::iconLoader()->loadIcon ((icon), KIcon::NoGroup, 32)); + vlay = new TQVBoxLayout (frame, marginHint(), spacingHint()); + tab = new TQTabWidget (frame); vlay->addWidget (tab); entries.insert (item, tab); } else @@ -172,25 +172,25 @@ KDE_NO_EXPORT void Preferences::addPrefPage (PreferencesPage * page) { } KDE_NO_EXPORT void Preferences::removePrefPage(PreferencesPage * page) { - QString item, subitem, icon; + TQString item, subitem, icon; page->prefLocation (item, icon, subitem); if (item.isEmpty ()) return; - QMap<QString, QTabWidget *>::iterator en_it = entries.find (item); + TQMap<TQString, TQTabWidget *>::iterator en_it = entries.tqfind (item); if (en_it == entries.end ()) return; - QTabWidget * tab = en_it.data (); + TQTabWidget * tab = en_it.data (); for (int i = 0; i < tab->count (); i++) if (tab->label (i) == subitem) { - QWidget * w = tab->page (i); + TQWidget * w = tab->page (i); tab->removePage (w); delete w; break; } if (!tab->count ()) { - QWidget * w = tab->parentWidget (); - while (w && !w->inherits ("QFrame")) - w = w->parentWidget (); + TQWidget * w = tab->tqparentWidget (); + while (w && !w->inherits (TQFRAME_OBJECT_NAME_STRING)) + w = w->tqparentWidget (); delete w; entries.erase (en_it); } @@ -199,106 +199,106 @@ KDE_NO_EXPORT void Preferences::removePrefPage(PreferencesPage * page) { KDE_NO_CDTOR_EXPORT Preferences::~Preferences() { } -KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral::PrefGeneralPageGeneral(QWidget *parent, Settings *) -: QFrame (parent, "GeneralPage") +KDE_NO_CDTOR_EXPORT PrefGeneralPageGeneral::PrefGeneralPageGeneral(TQWidget *tqparent, Settings *) +: TQFrame (tqparent, "GeneralPage") { - QVBoxLayout *layout = new QVBoxLayout(this, 5, 2); - - QGroupBox *windowbox = new QGroupBox(1, Qt::Vertical, i18n("Window"), this); - QWidget * wbox = new QWidget (windowbox); - QWidget * bbox = new QWidget (wbox); - QGridLayout * gridlayout = new QGridLayout (bbox, 2, 2); - keepSizeRatio = new QCheckBox (i18n ("Keep size ratio"), bbox, 0); - QWhatsThis::add(keepSizeRatio, i18n("When checked, movie will keep its aspect ratio\nwhen window is resized")); - dockSysTray = new QCheckBox (i18n ("Dock in system tray"), bbox, 0); - QWhatsThis::add (dockSysTray, i18n ("When checked, an icon of KMPlayer will be added to the system tray.\nWhen clicked it will hide KMPlayer's main window and removing KMPlayer's taskbar button.")); - autoResize = new QCheckBox (i18n ("Auto resize to video sizes"), bbox); - QWhatsThis::add (autoResize, i18n("When checked, KMPlayer will resize to movie sizes\nwhen video starts")); - gridlayout->addWidget (keepSizeRatio, 0, 0); - gridlayout->addWidget (dockSysTray, 1, 0); - gridlayout->addWidget (autoResize, 0, 1); - sizesChoice = new QButtonGroup (2, Qt::Vertical, wbox); - new QRadioButton (i18n("Remember window size on exit"), sizesChoice); - new QRadioButton (i18n("Always start with fixed size"), sizesChoice); - QVBoxLayout * vbox = new QVBoxLayout (wbox, 2, 2); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 5, 2); + + TQGroupBox *windowbox = new TQGroupBox(1, Qt::Vertical, i18n("Window"), this); + TQWidget * wbox = new TQWidget (windowbox); + TQWidget * bbox = new TQWidget (wbox); + TQGridLayout * gridtqlayout = new TQGridLayout (bbox, 2, 2); + keepSizeRatio = new TQCheckBox (i18n ("Keep size ratio"), bbox, 0); + TQWhatsThis::add(keepSizeRatio, i18n("When checked, movie will keep its aspect ratio\nwhen window is resized")); + dockSysTray = new TQCheckBox (i18n ("Dock in system tray"), bbox, 0); + TQWhatsThis::add (dockSysTray, i18n ("When checked, an icon of KMPlayer will be added to the system tray.\nWhen clicked it will hide KMPlayer's main window and removing KMPlayer's taskbar button.")); + autoResize = new TQCheckBox (i18n ("Auto resize to video sizes"), bbox); + TQWhatsThis::add (autoResize, i18n("When checked, KMPlayer will resize to movie sizes\nwhen video starts")); + gridtqlayout->addWidget (keepSizeRatio, 0, 0); + gridtqlayout->addWidget (dockSysTray, 1, 0); + gridtqlayout->addWidget (autoResize, 0, 1); + sizesChoice = new TQButtonGroup (2, Qt::Vertical, wbox); + new TQRadioButton (i18n("Remember window size on exit"), sizesChoice); + new TQRadioButton (i18n("Always start with fixed size"), sizesChoice); + TQVBoxLayout * vbox = new TQVBoxLayout (wbox, 2, 2); vbox->addWidget (bbox); vbox->addWidget (sizesChoice); - QGroupBox *playbox =new QGroupBox(4, Qt::Vertical,i18n("Playing"),this); - loop = new QCheckBox (i18n("Loop"), playbox); - QWhatsThis::add(loop, i18n("Makes current movie loop")); - framedrop = new QCheckBox (i18n ("Allow framedrops"), playbox); - QWhatsThis::add (framedrop, i18n ("Allow dropping frames for better audio and video synchronization")); - adjustvolume = new QCheckBox(i18n("Auto set volume on start"), playbox); - QWhatsThis::add (adjustvolume, i18n ("When a new source is selected, the volume will be set according the volume control")); - adjustcolors = new QCheckBox(i18n("Auto set colors on start"), playbox); - QWhatsThis::add (adjustcolors, i18n ("When a movie starts, the colors will be set according the sliders for colors")); - - QGroupBox * gbox =new QGroupBox (1, Qt::Vertical, i18n("Control Panel"), this); - bbox =new QWidget (gbox); - //QGroupBox * bbox = gbox; - gridlayout = new QGridLayout (bbox, 3, 2); - showConfigButton = new QCheckBox(i18n("Show config button"), bbox); - QWhatsThis::add (showConfigButton, i18n ("Add a button that will popup a config menu")); - showPlaylistButton = new QCheckBox(i18n("Show playlist button"), bbox); - QWhatsThis::add (showPlaylistButton, i18n ("Add a playlist button to the control buttons")); - showRecordButton = new QCheckBox(i18n("Show record button"), bbox); - QWhatsThis::add (showRecordButton, i18n ("Add a record button to the control buttons")); - showBroadcastButton = new QCheckBox (i18n ("Show broadcast button"), bbox); - QWhatsThis::add (showBroadcastButton, i18n ("Add a broadcast button to the control buttons")); - gridlayout->addWidget (showConfigButton, 0, 0); - gridlayout->addWidget (showPlaylistButton, 0, 1); - gridlayout->addWidget (showRecordButton, 1, 0); - gridlayout->addWidget (showBroadcastButton, 1, 1); - //QWidget *seekingWidget = new QWidget (bbox); - QHBoxLayout *seekLayout = new QHBoxLayout (bbox); - seekLayout->addWidget(new QLabel(i18n("Forward/backward seek time:"),bbox)); - seekLayout->addItem(new QSpacerItem(0,0,QSizePolicy::Minimum, QSizePolicy::Minimum)); - seekTime = new QSpinBox(1, 600, 1, bbox); + TQGroupBox *playbox =new TQGroupBox(4, Qt::Vertical,i18n("Playing"),this); + loop = new TQCheckBox (i18n("Loop"), playbox); + TQWhatsThis::add(loop, i18n("Makes current movie loop")); + framedrop = new TQCheckBox (i18n ("Allow framedrops"), playbox); + TQWhatsThis::add (framedrop, i18n ("Allow dropping frames for better audio and video synchronization")); + adjustvolume = new TQCheckBox(i18n("Auto set volume on start"), playbox); + TQWhatsThis::add (adjustvolume, i18n ("When a new source is selected, the volume will be set according the volume control")); + adjustcolors = new TQCheckBox(i18n("Auto set colors on start"), playbox); + TQWhatsThis::add (adjustcolors, i18n ("When a movie starts, the colors will be set according the sliders for colors")); + + TQGroupBox * gbox =new TQGroupBox (1, Qt::Vertical, i18n("Control Panel"), this); + bbox =new TQWidget (gbox); + //TQGroupBox * bbox = gbox; + gridtqlayout = new TQGridLayout (bbox, 3, 2); + showConfigButton = new TQCheckBox(i18n("Show config button"), bbox); + TQWhatsThis::add (showConfigButton, i18n ("Add a button that will popup a config menu")); + showPlaylistButton = new TQCheckBox(i18n("Show playlist button"), bbox); + TQWhatsThis::add (showPlaylistButton, i18n ("Add a playlist button to the control buttons")); + showRecordButton = new TQCheckBox(i18n("Show record button"), bbox); + TQWhatsThis::add (showRecordButton, i18n ("Add a record button to the control buttons")); + showBroadcastButton = new TQCheckBox (i18n ("Show broadcast button"), bbox); + TQWhatsThis::add (showBroadcastButton, i18n ("Add a broadcast button to the control buttons")); + gridtqlayout->addWidget (showConfigButton, 0, 0); + gridtqlayout->addWidget (showPlaylistButton, 0, 1); + gridtqlayout->addWidget (showRecordButton, 1, 0); + gridtqlayout->addWidget (showBroadcastButton, 1, 1); + //TQWidget *seekingWidget = new TQWidget (bbox); + TQHBoxLayout *seekLayout = new TQHBoxLayout (bbox); + seekLayout->addWidget(new TQLabel(i18n("Forward/backward seek time:"),bbox)); + seekLayout->addItem(new TQSpacerItem(0,0,TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + seekTime = new TQSpinBox(1, 600, 1, bbox); seekLayout->addWidget(seekTime); - seekLayout->addItem(new QSpacerItem(0,0,QSizePolicy::Minimum, QSizePolicy::Minimum)); - gridlayout->addMultiCellLayout (seekLayout, 2, 2, 0, 1); + seekLayout->addItem(new TQSpacerItem(0,0,TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + gridtqlayout->addMultiCellLayout (seekLayout, 2, 2, 0, 1); - layout->addWidget (windowbox); - layout->addWidget (playbox); - layout->addWidget (gbox); - //layout->addWidget(autoHideSlider); - layout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); + tqlayout->addWidget (windowbox); + tqlayout->addWidget (playbox); + tqlayout->addWidget (gbox); + //tqlayout->addWidget(autoHideSlider); + tqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); } -KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks::PrefGeneralPageLooks (QWidget *parent, Settings * settings) - : QFrame (parent, "LooksPage"), +KDE_NO_CDTOR_EXPORT PrefGeneralPageLooks::PrefGeneralPageLooks (TQWidget *tqparent, Settings * settings) + : TQFrame (tqparent, "LooksPage"), colors (settings->colors), fonts (settings->fonts) { - QVBoxLayout *layout = new QVBoxLayout(this, 5, 2); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 5, 2); - QGroupBox *colorbox= new QGroupBox(2, Qt::Horizontal, i18n("Colors"), this); - colorscombo = new QComboBox (colorbox); + TQGroupBox *colorbox= new TQGroupBox(2, Qt::Horizontal, i18n("Colors"), this); + colorscombo = new TQComboBox (colorbox); for (int i = 0; i < int (ColorSetting::last_target); i++) colorscombo->insertItem (colors[i].title); colorscombo->setCurrentItem (0); - connect (colorscombo, SIGNAL (activated (int)), - this, SLOT (colorItemChanged(int))); + connect (colorscombo, TQT_SIGNAL (activated (int)), + this, TQT_SLOT (colorItemChanged(int))); colorbutton = new KColorButton (colorbox); colorbutton->setColor (colors[0].color); - connect (colorbutton, SIGNAL (changed (const QColor &)), - this, SLOT (colorCanged (const QColor &))); + connect (colorbutton, TQT_SIGNAL (changed (const TQColor &)), + this, TQT_SLOT (colorCanged (const TQColor &))); - QGroupBox *fontbox = new QGroupBox (2,Qt::Horizontal, i18n ("Fonts"), this); - fontscombo = new QComboBox (fontbox); + TQGroupBox *fontbox = new TQGroupBox (2,Qt::Horizontal, i18n ("Fonts"), this); + fontscombo = new TQComboBox (fontbox); for (int i = 0; i < int (FontSetting::last_target); i++) fontscombo->insertItem (fonts[i].title); fontscombo->setCurrentItem (0); - connect (fontscombo, SIGNAL (activated (int)), - this, SLOT (fontItemChanged(int))); - fontbutton = new QPushButton (i18n ("AaBbCc"), fontbox); + connect (fontscombo, TQT_SIGNAL (activated (int)), + this, TQT_SLOT (fontItemChanged(int))); + fontbutton = new TQPushButton (i18n ("AaBbCc"), fontbox); fontbutton->setFlat (true); fontbutton->setFont (fonts[0].font); - connect (fontbutton, SIGNAL (clicked ()), this, SLOT (fontClicked ())); + connect (fontbutton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (fontClicked ())); - layout->addWidget (colorbox); - layout->addWidget (fontbox); - layout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); + tqlayout->addWidget (colorbox); + tqlayout->addWidget (fontbox); + tqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); } KDE_NO_EXPORT void PrefGeneralPageLooks::colorItemChanged (int c) { @@ -306,7 +306,7 @@ KDE_NO_EXPORT void PrefGeneralPageLooks::colorItemChanged (int c) { colorbutton->setColor (colors[c].newcolor); } -KDE_NO_EXPORT void PrefGeneralPageLooks::colorCanged (const QColor & c) { +KDE_NO_EXPORT void PrefGeneralPageLooks::colorCanged (const TQColor & c) { if (colorscombo->currentItem () < int (ColorSetting::last_target)) colors[colorscombo->currentItem ()].newcolor = c; } @@ -318,7 +318,7 @@ KDE_NO_EXPORT void PrefGeneralPageLooks::fontItemChanged (int f) { KDE_NO_EXPORT void PrefGeneralPageLooks::fontClicked () { if (fontscombo->currentItem () < int (FontSetting::last_target)) { - QFont myfont = fonts [fontscombo->currentItem ()].newfont; + TQFont myfont = fonts [fontscombo->currentItem ()].newfont; int res = KFontDialog::getFont (myfont, false, this); if (res == KFontDialog::Accepted) { fonts [fontscombo->currentItem ()].newfont = myfont; @@ -327,155 +327,155 @@ KDE_NO_EXPORT void PrefGeneralPageLooks::fontClicked () { } } -KDE_NO_CDTOR_EXPORT PrefSourcePageURL::PrefSourcePageURL (QWidget *parent) -: QFrame (parent, "URLPage") +KDE_NO_CDTOR_EXPORT PrefSourcePageURL::PrefSourcePageURL (TQWidget *tqparent) +: TQFrame (tqparent, "URLPage") { - QVBoxLayout *layout = new QVBoxLayout (this, 5, 5); - QHBoxLayout * urllayout = new QHBoxLayout (); - QHBoxLayout * sub_urllayout = new QHBoxLayout (); - QLabel *urlLabel = new QLabel (i18n ("Location:"), this, 0); + TQVBoxLayout *tqlayout = new TQVBoxLayout (this, 5, 5); + TQHBoxLayout * urltqlayout = new TQHBoxLayout (); + TQHBoxLayout * sub_urltqlayout = new TQHBoxLayout (); + TQLabel *urlLabel = new TQLabel (i18n ("Location:"), this, 0); urllist = new KComboBox (true, this); urllist->setMaxCount (20); urllist->setDuplicatesEnabled (false); // not that it helps much :( url = new KURLRequester (urllist, this); - QWhatsThis::add (url, i18n ("Location of the playable item")); + TQWhatsThis::add (url, i18n ("Location of the playable item")); //url->setShowLocalProtocol (true); - url->setSizePolicy (QSizePolicy (QSizePolicy::Expanding, QSizePolicy::Preferred)); - QLabel *sub_urlLabel = new QLabel (i18n ("Sub title:"), this, 0); + url->tqsetSizePolicy (TQSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Preferred)); + TQLabel *sub_urlLabel = new TQLabel (i18n ("Sub title:"), this, 0); sub_urllist = new KComboBox (true, this); sub_urllist->setMaxCount (20); sub_urllist->setDuplicatesEnabled (false); // not that it helps much :( sub_url = new KURLRequester (sub_urllist, this); - QWhatsThis::add (sub_url, i18n ("Optional location of a file containing the subtitles of the URL above")); - sub_url->setSizePolicy (QSizePolicy (QSizePolicy::Expanding, QSizePolicy::Preferred)); - backend = new QListBox (this); - allowhref = new QCheckBox (i18n ("Enable 'Click to Play' support"), this); - QWhatsThis::add (allowhref, i18n ("Support for WEB pages having a start image")); - layout->addWidget (allowhref); - urllayout->addWidget (urlLabel); - urllayout->addWidget (url); - layout->addLayout (urllayout); - sub_urllayout->addWidget (sub_urlLabel); - sub_urllayout->addWidget (sub_url); - layout->addLayout (sub_urllayout); - layout->addItem (new QSpacerItem (0, 10, QSizePolicy::Minimum, QSizePolicy::Minimum)); - QGridLayout * gridlayout = new QGridLayout (2, 2); - QLabel *backendLabel = new QLabel (i18n ("Use movie player:"), this, 0); - //QWhatsThis::add (allowhref, i18n ("Explain this in a few lines")); - gridlayout->addWidget (backendLabel, 0, 0); - gridlayout->addWidget (backend, 1, 0); - gridlayout->addMultiCell (new QSpacerItem (0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1, 1, 1); - QGroupBox *cbox = new QGroupBox(1, Qt::Vertical, i18n("Network bandwidth"), this); - QWidget * wbox = new QWidget (cbox); - QGridLayout * bitratelayout = new QGridLayout (wbox, 2, 3, 5); - prefBitRate = new QLineEdit (wbox); - QWhatsThis::add (prefBitRate, i18n("Sometimes it is possible to choose between various streams given a particular bitrate.\nThis option sets how much bandwidth you would prefer to allocate to video.")); - maxBitRate = new QLineEdit (wbox); - QWhatsThis::add (maxBitRate, i18n("Sometimes it is possible to choose between various streams given a particular bitrate.\nThis option sets the maximum bandwidth you have available for video.")); - bitratelayout->addWidget(new QLabel(i18n("Preferred bitrate:"), wbox), 0, 0); - bitratelayout->addWidget (prefBitRate, 0, 1); - bitratelayout->addWidget (new QLabel (i18n ("kbit/s"), wbox), 0, 2); - bitratelayout->addWidget (new QLabel(i18n("Maximum bitrate:"), wbox), 1, 0); - bitratelayout->addWidget (maxBitRate, 1, 1); - bitratelayout->addWidget (new QLabel (i18n ("kbit/s"), wbox), 1, 2); - layout->addLayout (gridlayout); - layout->addWidget (cbox); - layout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); - connect (urllist, SIGNAL(textChanged (const QString &)), - this, SLOT (slotTextChanged (const QString &))); - connect (sub_urllist, SIGNAL(textChanged (const QString &)), - this, SLOT (slotTextChanged (const QString &))); + TQWhatsThis::add (sub_url, i18n ("Optional location of a file containing the subtitles of the URL above")); + sub_url->tqsetSizePolicy (TQSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Preferred)); + backend = new TQListBox (this); + allowhref = new TQCheckBox (i18n ("Enable 'Click to Play' support"), this); + TQWhatsThis::add (allowhref, i18n ("Support for WEB pages having a start image")); + tqlayout->addWidget (allowhref); + urltqlayout->addWidget (urlLabel); + urltqlayout->addWidget (url); + tqlayout->addLayout (urltqlayout); + sub_urltqlayout->addWidget (sub_urlLabel); + sub_urltqlayout->addWidget (sub_url); + tqlayout->addLayout (sub_urltqlayout); + tqlayout->addItem (new TQSpacerItem (0, 10, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + TQGridLayout * gridtqlayout = new TQGridLayout (2, 2); + TQLabel *backendLabel = new TQLabel (i18n ("Use movie player:"), this, 0); + //TQWhatsThis::add (allowhref, i18n ("Explain this in a few lines")); + gridtqlayout->addWidget (backendLabel, 0, 0); + gridtqlayout->addWidget (backend, 1, 0); + gridtqlayout->addMultiCell (new TQSpacerItem (0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum), 0, 1, 1, 1); + TQGroupBox *cbox = new TQGroupBox(1, Qt::Vertical, i18n("Network bandwidth"), this); + TQWidget * wbox = new TQWidget (cbox); + TQGridLayout * bitratetqlayout = new TQGridLayout (wbox, 2, 3, 5); + prefBitRate = new TQLineEdit (wbox); + TQWhatsThis::add (prefBitRate, i18n("Sometimes it is possible to choose between various streams given a particular bitrate.\nThis option sets how much bandwidth you would prefer to allocate to video.")); + maxBitRate = new TQLineEdit (wbox); + TQWhatsThis::add (maxBitRate, i18n("Sometimes it is possible to choose between various streams given a particular bitrate.\nThis option sets the maximum bandwidth you have available for video.")); + bitratetqlayout->addWidget(new TQLabel(i18n("Preferred bitrate:"), wbox), 0, 0); + bitratetqlayout->addWidget (prefBitRate, 0, 1); + bitratetqlayout->addWidget (new TQLabel (i18n ("kbit/s"), wbox), 0, 2); + bitratetqlayout->addWidget (new TQLabel(i18n("Maximum bitrate:"), wbox), 1, 0); + bitratetqlayout->addWidget (maxBitRate, 1, 1); + bitratetqlayout->addWidget (new TQLabel (i18n ("kbit/s"), wbox), 1, 2); + tqlayout->addLayout (gridtqlayout); + tqlayout->addWidget (cbox); + tqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); + connect (urllist, TQT_SIGNAL(textChanged (const TQString &)), + this, TQT_SLOT (slotTextChanged (const TQString &))); + connect (sub_urllist, TQT_SIGNAL(textChanged (const TQString &)), + this, TQT_SLOT (slotTextChanged (const TQString &))); } KDE_NO_EXPORT void PrefSourcePageURL::slotBrowse () { } -KDE_NO_EXPORT void PrefSourcePageURL::slotTextChanged (const QString &) { +KDE_NO_EXPORT void PrefSourcePageURL::slotTextChanged (const TQString &) { changed = true; } -KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (QWidget *parent, PartBase * player, RecorderPage * rl, int rec_len) : QFrame (parent, "RecordPage"), m_player (player), m_recorders (rl), m_recorders_length (rec_len) { - QVBoxLayout *layout = new QVBoxLayout (this, 5, 5); - QHBoxLayout * urllayout = new QHBoxLayout (); - QLabel *urlLabel = new QLabel (i18n ("Output file:"), this); +KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *tqparent, PartBase * player, RecorderPage * rl, int rec_len) : TQFrame (tqparent, "RecordPage"), m_player (player), m_recorders (rl), m_recorders_length (rec_len) { + TQVBoxLayout *tqlayout = new TQVBoxLayout (this, 5, 5); + TQHBoxLayout * urltqlayout = new TQHBoxLayout (); + TQLabel *urlLabel = new TQLabel (i18n ("Output file:"), this); url = new KURLRequester ("", this); url->setShowLocalProtocol (true); - urllayout->addWidget (urlLabel); - urllayout->addWidget (url); - recordButton = new QPushButton (i18n ("Start &Recording"), this); - connect (recordButton, SIGNAL (clicked ()), this, SLOT (slotRecord ())); - QHBoxLayout *buttonlayout = new QHBoxLayout; - buttonlayout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum)); - buttonlayout->addWidget (recordButton); - source = new QLabel (i18n ("Current source: ") + m_player->source ()->prettyName (), this); - recorder = new QButtonGroup (m_recorders_length, Qt::Vertical, i18n ("Recorder"), this); + urltqlayout->addWidget (urlLabel); + urltqlayout->addWidget (url); + recordButton = new TQPushButton (i18n ("Start &Recording"), this); + connect (recordButton, TQT_SIGNAL (clicked ()), this, TQT_SLOT (slotRecord ())); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + buttontqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + buttontqlayout->addWidget (recordButton); + source = new TQLabel (i18n ("Current source: ") + m_player->source ()->prettyName (), this); + recorder = new TQButtonGroup (m_recorders_length, Qt::Vertical, i18n ("Recorder"), this); for (RecorderPage * p = m_recorders; p; p = p->next) - new QRadioButton (p->name (), recorder); + new TQRadioButton (p->name (), recorder); if (m_player->source ()) sourceChanged (0L, m_player->source ()); recorder->setButton(0); // for now - replay = new QButtonGroup (4, Qt::Vertical, i18n ("Auto Playback"), this); - new QRadioButton (i18n ("&No"), replay); - new QRadioButton (i18n ("&When recording finished"), replay); - new QRadioButton (i18n ("A&fter"), replay); - QWidget * customreplay = new QWidget (replay); - replaytime = new QLineEdit (customreplay); - QHBoxLayout *replaylayout = new QHBoxLayout (customreplay); - replaylayout->addWidget (new QLabel (i18n("Time (seconds):"), customreplay)); - replaylayout->addWidget (replaytime); - replaylayout->addItem (new QSpacerItem (0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); - layout->addWidget (source); - layout->addItem (new QSpacerItem (5, 0, QSizePolicy::Minimum, QSizePolicy::Minimum)); - layout->addLayout (urllayout); - layout->addItem (new QSpacerItem (5, 0, QSizePolicy::Minimum, QSizePolicy::Minimum)); - layout->addWidget (recorder); - layout->addItem (new QSpacerItem (5, 0, QSizePolicy::Minimum, QSizePolicy::Minimum)); - layout->addWidget (replay); - layout->addItem (new QSpacerItem (5, 0, QSizePolicy::Minimum, QSizePolicy::Minimum)); - layout->addLayout (buttonlayout); - layout->addItem (new QSpacerItem (5, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); - connect (m_player, SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*))); + replay = new TQButtonGroup (4, Qt::Vertical, i18n ("Auto Playback"), this); + new TQRadioButton (i18n ("&No"), replay); + new TQRadioButton (i18n ("&When recording finished"), replay); + new TQRadioButton (i18n ("A&fter"), replay); + TQWidget * customreplay = new TQWidget (replay); + replaytime = new TQLineEdit (customreplay); + TQHBoxLayout *replaytqlayout = new TQHBoxLayout (customreplay); + replaytqlayout->addWidget (new TQLabel (i18n("Time (seconds):"), customreplay)); + replaytqlayout->addWidget (replaytime); + replaytqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum)); + tqlayout->addWidget (source); + tqlayout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + tqlayout->addLayout (urltqlayout); + tqlayout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + tqlayout->addWidget (recorder); + tqlayout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + tqlayout->addWidget (replay); + tqlayout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum)); + tqlayout->addLayout (buttontqlayout); + tqlayout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); + connect (m_player, TQT_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQT_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*))); #ifdef HAVE_XINE - connect (recorder, SIGNAL (clicked(int)), this, SLOT(recorderClicked(int))); + connect (recorder, TQT_SIGNAL (clicked(int)), this, TQT_SLOT(recorderClicked(int))); #endif - connect (replay, SIGNAL (clicked (int)), this, SLOT (replayClicked (int))); + connect (replay, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (replayClicked (int))); } KDE_NO_EXPORT void PrefRecordPage::recordingStarted () { recordButton->setText (i18n ("Stop Recording")); url->setEnabled (false); - topLevelWidget ()->hide (); + tqtopLevelWidget ()->hide (); } KDE_NO_EXPORT void PrefRecordPage::recordingFinished () { recordButton->setText (i18n ("Start Recording")); url->setEnabled (true); - QTimer::singleShot (0, m_player, SLOT(recordingStopped())); // removed from PartBase::setSource because PartBase::recordingStopped calls openURL and that will call PartBase::setSource and Qt doesn't like disconnecting/connecting a signal that is current + TQTimer::singleShot (0, m_player, TQT_SLOT(recordingStopped())); // removed from PartBase::setSource because PartBase::recordingStopped calls openURL and that will call PartBase::setSource and TQt doesn't like disconnecting/connecting a signal that is current } KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) { int id = 0; int nr_recs = 0; if (olds) { - disconnect(nws,SIGNAL(startRecording()),this, SLOT(recordingStarted())); - disconnect(nws,SIGNAL(stopRecording()),this, SLOT(recordingFinished())); + disconnect(nws,TQT_SIGNAL(startRecording()),this, TQT_SLOT(recordingStarted())); + disconnect(nws,TQT_SIGNAL(stopRecording()),this, TQT_SLOT(recordingFinished())); } if (nws) { for (RecorderPage * p = m_recorders; p; p = p->next, ++id) { - QButton * radio = recorder->find (id); + TQButton * radio = recorder->tqfind (id); bool b = m_player->recorders () [p->recorderName ()]->supports (nws->name ()); radio->setEnabled (b); if (b) nr_recs++; } source->setText (i18n ("Current Source: ") + nws->prettyName ()); - connect (nws, SIGNAL(startRecording()), this, SLOT(recordingStarted())); - connect (nws, SIGNAL(stopRecording()), this, SLOT(recordingFinished())); + connect (nws, TQT_SIGNAL(startRecording()), this, TQT_SLOT(recordingStarted())); + connect (nws, TQT_SIGNAL(stopRecording()), this, TQT_SLOT(recordingFinished())); } recordButton->setEnabled (nr_recs > 0); } KDE_NO_EXPORT void PrefRecordPage::recorderClicked (int id) { - bool b = recorder->find(id)->text().find (QString::fromLatin1("Xine")) > -1; + bool b = recorder->tqfind(id)->text().tqfind (TQString::tqfromLatin1("Xine")) > -1; replay->setEnabled (!b); if (b) replay->setButton (Settings::ReplayNo); @@ -487,8 +487,8 @@ KDE_NO_EXPORT void PrefRecordPage::replayClicked (int id) { } KDE_NO_EXPORT void PrefRecordPage::slotRecord () { - connect (m_player->source (), SIGNAL (stopPlaying ()), - this, SLOT (playingStopped ())); + connect (m_player->source (), TQT_SIGNAL (stopPlaying ()), + this, TQT_SLOT (playingStopped ())); if (m_player->process () && m_player->process ()->playing ()) m_player->process ()->quit (); else @@ -496,8 +496,8 @@ KDE_NO_EXPORT void PrefRecordPage::slotRecord () { } KDE_NO_EXPORT void PrefRecordPage::playingStopped () { - disconnect (m_player->source (), SIGNAL (stopPlaying ()), - this, SLOT (playingStopped ())); + disconnect (m_player->source (), TQT_SIGNAL (stopPlaying ()), + this, TQT_SLOT (playingStopped ())); if (!url->lineEdit()->text().isEmpty()) { m_player->settings ()->recordfile = url->lineEdit()->text(); m_player->settings ()->replaytime = replaytime->text ().toInt (); @@ -518,8 +518,8 @@ KDE_NO_EXPORT void PrefRecordPage::playingStopped () { } } -KDE_NO_CDTOR_EXPORT RecorderPage::RecorderPage (QWidget *parent, PartBase * player) - : QFrame (parent), next (0L), m_player (player) {} +KDE_NO_CDTOR_EXPORT RecorderPage::RecorderPage (TQWidget *tqparent, PartBase * player) + : TQFrame (tqparent), next (0L), m_player (player) {} KDE_NO_EXPORT void RecorderPage::record () { Process * proc = m_player->recorders () [recorderName ()]; @@ -537,20 +537,20 @@ KDE_NO_EXPORT void RecorderPage::record () { } } -KDE_NO_CDTOR_EXPORT PrefMEncoderPage::PrefMEncoderPage (QWidget *parent, PartBase * player) : RecorderPage (parent, player) { - QVBoxLayout *layout = new QVBoxLayout (this, 5, 5); - format = new QButtonGroup (3, Qt::Vertical, i18n ("Format"), this); - new QRadioButton (i18n ("Same as source"), format); - new QRadioButton (i18n ("Custom"), format); - QWidget * customopts = new QWidget (format); - QGridLayout *gridlayout = new QGridLayout (customopts, 1, 2, 2); - QLabel *argLabel = new QLabel (i18n("Mencoder arguments:"), customopts, 0); - arguments = new QLineEdit ("", customopts); - gridlayout->addWidget (argLabel, 0, 0); - gridlayout->addWidget (arguments, 0, 1); - layout->addWidget (format); - layout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); - connect (format, SIGNAL (clicked (int)), this, SLOT (formatClicked (int))); +KDE_NO_CDTOR_EXPORT PrefMEncoderPage::PrefMEncoderPage (TQWidget *tqparent, PartBase * player) : RecorderPage (tqparent, player) { + TQVBoxLayout *tqlayout = new TQVBoxLayout (this, 5, 5); + format = new TQButtonGroup (3, Qt::Vertical, i18n ("Format"), this); + new TQRadioButton (i18n ("Same as source"), format); + new TQRadioButton (i18n ("Custom"), format); + TQWidget * customopts = new TQWidget (format); + TQGridLayout *gridtqlayout = new TQGridLayout (customopts, 1, 2, 2); + TQLabel *argLabel = new TQLabel (i18n("Mencoder arguments:"), customopts, 0); + arguments = new TQLineEdit ("", customopts); + gridtqlayout->addWidget (argLabel, 0, 0); + gridtqlayout->addWidget (arguments, 0, 1); + tqlayout->addWidget (format); + tqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); + connect (format, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (formatClicked (int))); } KDE_NO_EXPORT void PrefMEncoderPage::formatClicked (int id) { @@ -567,27 +567,27 @@ KDE_NO_EXPORT void PrefMEncoderPage::record () { RecorderPage::record (); } -KDE_NO_EXPORT QString PrefMEncoderPage::name () { +KDE_NO_EXPORT TQString PrefMEncoderPage::name () { return i18n ("&MEncoder"); } -KDE_NO_CDTOR_EXPORT PrefMPlayerDumpstreamPage::PrefMPlayerDumpstreamPage (QWidget *parent, PartBase * player) : RecorderPage (parent, player) { +KDE_NO_CDTOR_EXPORT PrefMPlayerDumpstreamPage::PrefMPlayerDumpstreamPage (TQWidget *tqparent, PartBase * player) : RecorderPage (tqparent, player) { hide(); } -KDE_NO_EXPORT QString PrefMPlayerDumpstreamPage::name () { +KDE_NO_EXPORT TQString PrefMPlayerDumpstreamPage::name () { return i18n ("MPlayer -&dumpstream"); } -KDE_NO_CDTOR_EXPORT PrefFFMpegPage::PrefFFMpegPage (QWidget *parent, PartBase * player) : RecorderPage (parent, player) { - QVBoxLayout *layout = new QVBoxLayout (this, 5, 5); - QGridLayout *gridlayout = new QGridLayout (1, 2, 2); - QLabel *argLabel = new QLabel (i18n("FFMpeg arguments:"), this); - arguments = new QLineEdit ("", this); - gridlayout->addWidget (argLabel, 0, 0); - gridlayout->addWidget (arguments, 0, 1); - layout->addLayout (gridlayout); - layout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); +KDE_NO_CDTOR_EXPORT PrefFFMpegPage::PrefFFMpegPage (TQWidget *tqparent, PartBase * player) : RecorderPage (tqparent, player) { + TQVBoxLayout *tqlayout = new TQVBoxLayout (this, 5, 5); + TQGridLayout *gridtqlayout = new TQGridLayout (1, 2, 2); + TQLabel *argLabel = new TQLabel (i18n("FFMpeg arguments:"), this); + arguments = new TQLineEdit ("", this); + gridtqlayout->addWidget (argLabel, 0, 0); + gridtqlayout->addWidget (arguments, 0, 1); + tqlayout->addLayout (gridtqlayout); + tqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); } KDE_NO_EXPORT void PrefFFMpegPage::record () { @@ -595,78 +595,78 @@ KDE_NO_EXPORT void PrefFFMpegPage::record () { RecorderPage::record (); } -KDE_NO_EXPORT QString PrefFFMpegPage::name () { +KDE_NO_EXPORT TQString PrefFFMpegPage::name () { return i18n ("&FFMpeg"); } #ifdef HAVE_XINE -KDE_NO_CDTOR_EXPORT PrefXinePage::PrefXinePage (QWidget *parent, PartBase * player) : RecorderPage (parent, player) { +KDE_NO_CDTOR_EXPORT PrefXinePage::PrefXinePage (TQWidget *tqparent, PartBase * player) : RecorderPage (tqparent, player) { hide(); } -KDE_NO_EXPORT QString PrefXinePage::name () { +KDE_NO_EXPORT TQString PrefXinePage::name () { return i18n ("&Xine"); } #endif -KDE_NO_CDTOR_EXPORT PrefGeneralPageOutput::PrefGeneralPageOutput(QWidget *parent, OutputDriver * ad, OutputDriver * vd) - : QFrame (parent) { - QGridLayout *layout = new QGridLayout (this, 2, 2, 5); +KDE_NO_CDTOR_EXPORT PrefGeneralPageOutput::PrefGeneralPageOutput(TQWidget *tqparent, OutputDriver * ad, OutputDriver * vd) + : TQFrame (tqparent) { + TQGridLayout *tqlayout = new TQGridLayout (this, 2, 2, 5); - videoDriver = new QListBox (this); + videoDriver = new TQListBox (this); for (int i = 0; vd[i].driver; i++) videoDriver->insertItem (vd[i].description, i); - QWhatsThis::add(videoDriver, i18n("Sets video driver. Recommended is XVideo, or, if it is not supported, X11, which is slower.")); - layout->addWidget (new QLabel (i18n ("Video driver:"), this), 0, 0); - layout->addWidget (videoDriver, 1, 0); + TQWhatsThis::add(videoDriver, i18n("Sets video driver. Recommended is XVideo, or, if it is not supported, X11, which is slower.")); + tqlayout->addWidget (new TQLabel (i18n ("Video driver:"), this), 0, 0); + tqlayout->addWidget (videoDriver, 1, 0); - audioDriver = new QListBox (this); + audioDriver = new TQListBox (this); for (int i = 0; ad[i].driver; i++) audioDriver->insertItem (ad[i].description, i); - layout->addWidget (new QLabel (i18n ("Audio driver:"), this), 0, 1); - layout->addWidget (audioDriver, 1, 1); - layout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding)); + tqlayout->addWidget (new TQLabel (i18n ("Audio driver:"), this), 0, 1); + tqlayout->addWidget (audioDriver, 1, 1); + tqlayout->addItem (new TQSpacerItem (0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); } -KDE_NO_CDTOR_EXPORT PrefOPPageGeneral::PrefOPPageGeneral(QWidget *parent) -: QFrame(parent) +KDE_NO_CDTOR_EXPORT PrefOPPageGeneral::PrefOPPageGeneral(TQWidget *tqparent) +: TQFrame(tqparent) { - QVBoxLayout *layout = new QVBoxLayout (this, 5); - layout->setAutoAdd (true); + TQVBoxLayout *tqlayout = new TQVBoxLayout (this, 5); + tqlayout->setAutoAdd (true); } -KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(QWidget *parent) : QFrame(parent) +KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *tqparent) : TQFrame(tqparent) { - QVBoxLayout *tabLayout = new QVBoxLayout (this, 5); - postProcessing = new QCheckBox (i18n ("Enable use of postprocessing filters"), this); + TQVBoxLayout *tabLayout = new TQVBoxLayout (this, 5); + postProcessing = new TQCheckBox (i18n ("Enable use of postprocessing filters"), this); postProcessing->setEnabled( true ); - disablePPauto = new QCheckBox (i18n ("Disable use of postprocessing when watching TV/DVD"), this); + disablePPauto = new TQCheckBox (i18n ("Disable use of postprocessing when watching TV/DVD"), this); tabLayout->addWidget( postProcessing ); tabLayout->addWidget( disablePPauto ); - tabLayout->addItem ( new QSpacerItem( 5, 5, QSizePolicy::Minimum, QSizePolicy::Minimum ) ); + tabLayout->addItem ( new TQSpacerItem( 5, 5, TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); - PostprocessingOptions = new QTabWidget( this, "PostprocessingOptions" ); + PostprocessingOptions = new TQTabWidget( this, "PostprocessingOptions" ); PostprocessingOptions->setEnabled (true); PostprocessingOptions->setAutoMask (false); - PostprocessingOptions->setTabPosition( QTabWidget::Top ); - PostprocessingOptions->setTabShape( QTabWidget::Rounded ); - PostprocessingOptions->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, PostprocessingOptions->sizePolicy().hasHeightForWidth() ) ); + PostprocessingOptions->setTabPosition( TQTabWidget::Top ); + PostprocessingOptions->setTabShape( TQTabWidget::Rounded ); + PostprocessingOptions->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, PostprocessingOptions->sizePolicy().hasHeightForWidth() ) ); - QWidget *presetSelectionWidget = new QWidget( PostprocessingOptions, "presetSelectionWidget" ); - QGridLayout *presetSelectionWidgetLayout = new QGridLayout( presetSelectionWidget, 1, 1, 1); + TQWidget *presetSelectionWidget = new TQWidget( PostprocessingOptions, "presetSelectionWidget" ); + TQGridLayout *presetSelectionWidgetLayout = new TQGridLayout( presetSelectionWidget, 1, 1, 1); - QButtonGroup *presetSelection = new QButtonGroup(3, Qt::Vertical, presetSelectionWidget); + TQButtonGroup *presetSelection = new TQButtonGroup(3, Qt::Vertical, presetSelectionWidget); presetSelection->setInsideSpacing(KDialog::spacingHint()); - defaultPreset = new QRadioButton (i18n ("Default"), presetSelection); + defaultPreset = new TQRadioButton (i18n ("Default"), presetSelection); defaultPreset->setChecked( true ); presetSelection->insert (defaultPreset); - customPreset = new QRadioButton (i18n ("Custom"), presetSelection); + customPreset = new TQRadioButton (i18n ("Custom"), presetSelection); presetSelection->insert (customPreset); - fastPreset = new QRadioButton (i18n ("Fast"), presetSelection); + fastPreset = new TQRadioButton (i18n ("Fast"), presetSelection); presetSelection->insert (fastPreset); presetSelection->setRadioButtonExclusive ( true); presetSelectionWidgetLayout->addWidget( presetSelection, 0, 0 ); @@ -675,120 +675,120 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(QWidget *parent) : QF // // SECOND!!! // - /* I JUST WASN'T ABLE TO GET THIS WORKING WITH QGridLayouts */ + /* I JUST WASN'T ABLE TO GET THIS WORKING WITH TQGridLayouts */ - QWidget *customFiltersWidget = new QWidget( PostprocessingOptions, "customFiltersWidget" ); - QVBoxLayout *customFiltersWidgetLayout = new QVBoxLayout( customFiltersWidget ); + TQWidget *customFiltersWidget = new TQWidget( PostprocessingOptions, "customFiltersWidget" ); + TQVBoxLayout *customFiltersWidgetLayout = new TQVBoxLayout( customFiltersWidget ); - QGroupBox *customFilters = new QGroupBox(0, Qt::Vertical, customFiltersWidget, "customFilters" ); - customFilters->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)1, (QSizePolicy::SizeType)2)); + TQGroupBox *customFilters = new TQGroupBox(0, Qt::Vertical, customFiltersWidget, "customFilters" ); + customFilters->tqsetSizePolicy(TQSizePolicy((TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2)); customFilters->setFlat(false); customFilters->setEnabled( false ); customFilters->setInsideSpacing(7); - QLayout *customFiltersLayout = customFilters->layout(); - QHBoxLayout *customFiltersLayout1 = new QHBoxLayout ( customFilters->layout() ); + TQLayout *customFiltersLayout = customFilters->tqlayout(); + TQHBoxLayout *customFiltersLayout1 = new TQHBoxLayout ( customFilters->tqlayout() ); - HzDeblockFilter = new QCheckBox (i18n ("Horizontal deblocking"), customFilters); - HzDeblockAQuality = new QCheckBox (i18n ("Auto quality"), customFilters); + HzDeblockFilter = new TQCheckBox (i18n ("Horizontal deblocking"), customFilters); + HzDeblockAQuality = new TQCheckBox (i18n ("Auto quality"), customFilters); HzDeblockAQuality->setEnabled (false); - HzDeblockCFiltering = new QCheckBox (i18n ("Chrominance filtering"), customFilters); + HzDeblockCFiltering = new TQCheckBox (i18n ("Chrominance filtering"), customFilters); HzDeblockCFiltering->setEnabled (false); customFiltersLayout1->addWidget( HzDeblockFilter ); - customFiltersLayout1->addItem( new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum ) ); + customFiltersLayout1->addItem( new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); customFiltersLayout1->addWidget( HzDeblockAQuality ); customFiltersLayout1->addWidget( HzDeblockCFiltering ); - QFrame *line1 = new QFrame( customFilters, "line1" ); - line1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)2 ) ); - line1->setFrameShape( QFrame::HLine ); - line1->setFrameShadow( QFrame::Sunken ); + TQFrame *line1 = new TQFrame( customFilters, "line1" ); + line1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2 ) ); + line1->setFrameShape( TQFrame::HLine ); + line1->setFrameShadow( TQFrame::Sunken ); customFiltersLayout->add(line1); - QHBoxLayout *customFiltersLayout2 = new QHBoxLayout ( customFilters->layout() ); + TQHBoxLayout *customFiltersLayout2 = new TQHBoxLayout ( customFilters->tqlayout() ); - VtDeblockFilter = new QCheckBox(i18n("Vertical deblocking"), customFilters); - VtDeblockAQuality = new QCheckBox (i18n ("Auto quality"), customFilters); + VtDeblockFilter = new TQCheckBox(i18n("Vertical deblocking"), customFilters); + VtDeblockAQuality = new TQCheckBox (i18n ("Auto quality"), customFilters); VtDeblockAQuality->setEnabled (false); - VtDeblockCFiltering = new QCheckBox (i18n ("Chrominance filtering"), customFilters); + VtDeblockCFiltering = new TQCheckBox (i18n ("Chrominance filtering"), customFilters); VtDeblockCFiltering->setEnabled (false); customFiltersLayout2->addWidget( VtDeblockFilter ); - customFiltersLayout2->addItem( new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum ) ); + customFiltersLayout2->addItem( new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); customFiltersLayout2->addWidget( VtDeblockAQuality ); customFiltersLayout2->addWidget( VtDeblockCFiltering ); - QFrame *line2 = new QFrame( customFilters, "line2" ); + TQFrame *line2 = new TQFrame( customFilters, "line2" ); - line2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)2 ) ); - line2->setFrameShape( QFrame::HLine ); - line2->setFrameShadow( QFrame::Sunken ); + line2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2 ) ); + line2->setFrameShape( TQFrame::HLine ); + line2->setFrameShadow( TQFrame::Sunken ); customFiltersLayout->add(line2); - QHBoxLayout *customFiltersLayout3 = new QHBoxLayout ( customFilters->layout() ); + TQHBoxLayout *customFiltersLayout3 = new TQHBoxLayout ( customFilters->tqlayout() ); - DeringFilter = new QCheckBox (i18n ("Dering filter"), customFilters); - DeringAQuality = new QCheckBox (i18n ("Auto quality"), customFilters); + DeringFilter = new TQCheckBox (i18n ("Dering filter"), customFilters); + DeringAQuality = new TQCheckBox (i18n ("Auto quality"), customFilters); DeringAQuality->setEnabled (false); - DeringCFiltering=new QCheckBox(i18n("Chrominance filtering"),customFilters); + DeringCFiltering=new TQCheckBox(i18n("Chrominance filtering"),customFilters); DeringCFiltering->setEnabled (false); customFiltersLayout3->addWidget( DeringFilter ); - customFiltersLayout3->addItem( new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum ) ); + customFiltersLayout3->addItem( new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); customFiltersLayout3->addWidget( DeringAQuality ); customFiltersLayout3->addWidget( DeringCFiltering ); - QFrame *line3 = new QFrame( customFilters, "line3" ); - line3->setFrameShape( QFrame::HLine ); - line3->setFrameShadow( QFrame::Sunken ); - line3->setFrameShape( QFrame::HLine ); + TQFrame *line3 = new TQFrame( customFilters, "line3" ); + line3->setFrameShape( TQFrame::HLine ); + line3->setFrameShadow( TQFrame::Sunken ); + line3->setFrameShape( TQFrame::HLine ); customFiltersLayout->add(line3); - QHBoxLayout *customFiltersLayout4 =new QHBoxLayout(customFilters->layout()); + TQHBoxLayout *customFiltersLayout4 =new TQHBoxLayout(customFilters->tqlayout()); - AutolevelsFilter = new QCheckBox (i18n ("Auto brightness/contrast"), customFilters); - AutolevelsFullrange = new QCheckBox (i18n ("Stretch luminance to full range"), customFilters); + AutolevelsFilter = new TQCheckBox (i18n ("Auto brightness/contrast"), customFilters); + AutolevelsFullrange = new TQCheckBox (i18n ("Stretch luminance to full range"), customFilters); AutolevelsFullrange->setEnabled (false); customFiltersLayout4->addWidget(AutolevelsFilter); - customFiltersLayout4->addItem(new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum )); + customFiltersLayout4->addItem(new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum )); customFiltersLayout4->addWidget(AutolevelsFullrange); - QHBoxLayout *customFiltersLayout5 = new QHBoxLayout (customFilters->layout()); + TQHBoxLayout *customFiltersLayout5 = new TQHBoxLayout (customFilters->tqlayout()); - TmpNoiseFilter =new QCheckBox(i18n("Temporal noise reducer"),customFilters); + TmpNoiseFilter =new TQCheckBox(i18n("Temporal noise reducer"),customFilters); /* Note: Change TmpNoiseFilter text back to "Label:" if this slider gets reactivated - TmpNoiseSlider = new QSlider( customFilters, "TmpNoiseSlider" ); + TmpNoiseSlider = new TQSlider( customFilters, "TmpNoiseSlider" ); TmpNoiseSlider->setEnabled( false ); TmpNoiseSlider->setMinValue( 1 ); TmpNoiseSlider->setMaxValue( 3 ); TmpNoiseSlider->setValue( 1 ); - TmpNoiseSlider->setOrientation( QSlider::Horizontal ); - TmpNoiseSlider->setTickmarks( QSlider::Left ); + TmpNoiseSlider->setOrientation( TQSlider::Horizontal ); + TmpNoiseSlider->setTickmarks( TQSlider::Left ); TmpNoiseSlider->setTickInterval( 1 ); - TmpNoiseSlider->setSizePolicy(QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1));*/ + TmpNoiseSlider->tqsetSizePolicy(TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1));*/ /*customFiltersLayout->addWidget(TmpNoiseFilter,7,0); customFiltersLayout->addWidget(TmpNoiseSlider,7,2);*/ customFiltersLayout5->addWidget(TmpNoiseFilter); - customFiltersLayout5->addItem(new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum )); + customFiltersLayout5->addItem(new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum )); //customFiltersLayout5->addWidget(TmpNoiseSlider); customFiltersWidgetLayout->addWidget( customFilters ); PostprocessingOptions->insertTab( customFiltersWidget, "" ); // //THIRD!!! // - QWidget *deintSelectionWidget = new QWidget( PostprocessingOptions, "deintSelectionWidget" ); - QVBoxLayout *deintSelectionWidgetLayout = new QVBoxLayout( deintSelectionWidget); - QButtonGroup *deinterlacingGroup = new QButtonGroup(5, Qt::Vertical, deintSelectionWidget, "deinterlacingGroup" ); + TQWidget *deintSelectionWidget = new TQWidget( PostprocessingOptions, "deintSelectionWidget" ); + TQVBoxLayout *deintSelectionWidgetLayout = new TQVBoxLayout( deintSelectionWidget); + TQButtonGroup *deinterlacingGroup = new TQButtonGroup(5, Qt::Vertical, deintSelectionWidget, "deinterlacingGroup" ); - LinBlendDeinterlacer = new QCheckBox (i18n ("Linear blend deinterlacer"), deinterlacingGroup); - LinIntDeinterlacer = new QCheckBox (i18n ("Linear interpolating deinterlacer"), deinterlacingGroup); - CubicIntDeinterlacer = new QCheckBox (i18n ("Cubic interpolating deinterlacer"), deinterlacingGroup); - MedianDeinterlacer = new QCheckBox (i18n ("Median deinterlacer"), deinterlacingGroup); - FfmpegDeinterlacer = new QCheckBox (i18n ("FFmpeg deinterlacer"), deinterlacingGroup); + LinBlendDeinterlacer = new TQCheckBox (i18n ("Linear blend deinterlacer"), deinterlacingGroup); + LinIntDeinterlacer = new TQCheckBox (i18n ("Linear interpolating deinterlacer"), deinterlacingGroup); + CubicIntDeinterlacer = new TQCheckBox (i18n ("Cubic interpolating deinterlacer"), deinterlacingGroup); + MedianDeinterlacer = new TQCheckBox (i18n ("Median deinterlacer"), deinterlacingGroup); + FfmpegDeinterlacer = new TQCheckBox (i18n ("FFmpeg deinterlacer"), deinterlacingGroup); deinterlacingGroup->insert( LinBlendDeinterlacer ); deinterlacingGroup->insert( LinIntDeinterlacer ); @@ -803,39 +803,39 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(QWidget *parent) : QF tabLayout->addWidget( PostprocessingOptions/*, 1, 0*/ ); PostprocessingOptions->setEnabled(false); - connect( customPreset, SIGNAL (toggled(bool) ), customFilters, SLOT(setEnabled(bool))); - connect( postProcessing, SIGNAL( toggled(bool) ), PostprocessingOptions, SLOT( setEnabled(bool) ) ); - connect( HzDeblockFilter, SIGNAL( toggled(bool) ), HzDeblockAQuality, SLOT( setEnabled(bool) ) ); - connect( HzDeblockFilter, SIGNAL( toggled(bool) ), HzDeblockCFiltering, SLOT( setEnabled(bool) ) ); - connect( VtDeblockFilter, SIGNAL( toggled(bool) ), VtDeblockCFiltering, SLOT( setEnabled(bool) ) ); - connect( VtDeblockFilter, SIGNAL( toggled(bool) ), VtDeblockAQuality, SLOT( setEnabled(bool) ) ); - connect( DeringFilter, SIGNAL( toggled(bool) ), DeringAQuality, SLOT( setEnabled(bool) ) ); - connect( DeringFilter, SIGNAL( toggled(bool) ), DeringCFiltering, SLOT( setEnabled(bool) ) ); - //connect( TmpNoiseFilter, SIGNAL( toggled(bool) ), TmpNoiseSlider, SLOT( setEnabled(bool) ) ); - - connect( AutolevelsFilter, SIGNAL( toggled(bool) ), AutolevelsFullrange, SLOT( setEnabled(bool) ) ); - - QWhatsThis::add( defaultPreset, i18n( "Enable mplayer's default postprocessing filters" ) ); - QWhatsThis::add( customPreset, i18n( "Enable custom postprocessing filters (See: Custom preset -tab)" ) ); - QWhatsThis::add( fastPreset, i18n( "Enable mplayer's fast postprocessing filters" ) ); + connect( customPreset, TQT_SIGNAL (toggled(bool) ), customFilters, TQT_SLOT(setEnabled(bool))); + connect( postProcessing, TQT_SIGNAL( toggled(bool) ), PostprocessingOptions, TQT_SLOT( setEnabled(bool) ) ); + connect( HzDeblockFilter, TQT_SIGNAL( toggled(bool) ), HzDeblockAQuality, TQT_SLOT( setEnabled(bool) ) ); + connect( HzDeblockFilter, TQT_SIGNAL( toggled(bool) ), HzDeblockCFiltering, TQT_SLOT( setEnabled(bool) ) ); + connect( VtDeblockFilter, TQT_SIGNAL( toggled(bool) ), VtDeblockCFiltering, TQT_SLOT( setEnabled(bool) ) ); + connect( VtDeblockFilter, TQT_SIGNAL( toggled(bool) ), VtDeblockAQuality, TQT_SLOT( setEnabled(bool) ) ); + connect( DeringFilter, TQT_SIGNAL( toggled(bool) ), DeringAQuality, TQT_SLOT( setEnabled(bool) ) ); + connect( DeringFilter, TQT_SIGNAL( toggled(bool) ), DeringCFiltering, TQT_SLOT( setEnabled(bool) ) ); + //connect( TmpNoiseFilter, TQT_SIGNAL( toggled(bool) ), TmpNoiseSlider, TQT_SLOT( setEnabled(bool) ) ); + + connect( AutolevelsFilter, TQT_SIGNAL( toggled(bool) ), AutolevelsFullrange, TQT_SLOT( setEnabled(bool) ) ); + + TQWhatsThis::add( defaultPreset, i18n( "Enable mplayer's default postprocessing filters" ) ); + TQWhatsThis::add( customPreset, i18n( "Enable custom postprocessing filters (See: Custom preset -tab)" ) ); + TQWhatsThis::add( fastPreset, i18n( "Enable mplayer's fast postprocessing filters" ) ); PostprocessingOptions->changeTab( presetSelectionWidget, i18n( "General" ) ); - customFilters->setTitle (QString ()); - QWhatsThis::add( HzDeblockAQuality, i18n( "Filter is used if there is enough CPU" ) ); - QWhatsThis::add( VtDeblockAQuality, i18n( "Filter is used if there is enough CPU" ) ); - QWhatsThis::add( DeringAQuality, i18n( "Filter is used if there is enough CPU" ) ); - //QWhatsThis::add( TmpNoiseSlider, i18n( "Strength of the noise reducer" ) ); - QWhatsThis::add( AutolevelsFullrange, i18n( "Stretches luminance to full range (0..255)" ) ); + customFilters->setTitle (TQString ()); + TQWhatsThis::add( HzDeblockAQuality, i18n( "Filter is used if there is enough CPU" ) ); + TQWhatsThis::add( VtDeblockAQuality, i18n( "Filter is used if there is enough CPU" ) ); + TQWhatsThis::add( DeringAQuality, i18n( "Filter is used if there is enough CPU" ) ); + //TQWhatsThis::add( TmpNoiseSlider, i18n( "Strength of the noise reducer" ) ); + TQWhatsThis::add( AutolevelsFullrange, i18n( "Stretches luminance to full range (0..255)" ) ); PostprocessingOptions->changeTab( customFiltersWidget, i18n( "Custom Preset" ) ); - deinterlacingGroup->setTitle (QString ()); + deinterlacingGroup->setTitle (TQString ()); PostprocessingOptions->changeTab( deintSelectionWidget, i18n( "Deinterlacing" ) ); PostprocessingOptions->adjustSize(); } KDE_NO_EXPORT void Preferences::confirmDefaults() { // TODO: Switch to KMessageBox - switch( QMessageBox::warning( this, i18n("Reset Settings?"), + switch( TQMessageBox::warning( this, i18n("Reset Settings?"), i18n("You are about to have all your settings overwritten with defaults.\nPlease confirm.\n"), - i18n ("&OK"), i18n ("&Cancel"), QString (), 0, 1)) { + i18n ("&OK"), i18n ("&Cancel"), TQString (), 0, 1)) { case 0: Preferences::setDefaults(); break; case 1: break; |