summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/lyrics/cmodule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/lyrics/cmodule.cpp')
-rw-r--r--noatun-plugins/lyrics/cmodule.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/noatun-plugins/lyrics/cmodule.cpp b/noatun-plugins/lyrics/cmodule.cpp
index efc2d77..6f2183f 100644
--- a/noatun-plugins/lyrics/cmodule.cpp
+++ b/noatun-plugins/lyrics/cmodule.cpp
@@ -29,7 +29,7 @@ const char *const DEFAULT_NAME =
"Everything2,"
"Everything2 (author info)";
-const char *const DEFAULT_QUERY =
+const char *const DEFAULT_TQUERY =
"http://www.google.com/search?q=lyrics+$(title)+$(author)+$(album),"
"http://www.purelyrics.com/index.php?search_artist=$(author)&search_album=$(album)&search_title=$(title)&search_lyrics=&search_advsubmit2=Search,"
"http://search.sing365.com/search.php?searchstr=$(title)&submit=search&category=song,"
@@ -47,23 +47,23 @@ const char *const DEFAULT_QUERY =
LyricsCModule::LyricsCModule(TQObject *_parent) : CModule(i18n("Lyrics"), i18n("Configure Lyrics Plugin"), "document", _parent) {
/* Thanks to the kde-usability guys for the help designing this dialog!
* help to simon edwards of KGuardGod, for a big help designing it */
- TQVBoxLayout *vlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- TQHBoxLayout *hlayout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
- vlayout->setStretchFactor( hlayout, 1 );
+ TQVBoxLayout *vtqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQHBoxLayout *htqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
+ vtqlayout->setStretchFactor( htqlayout, 1 );
// Search box
- TQVBoxLayout *boxlayout = new TQVBoxLayout( hlayout, KDialog::spacingHint() );
- boxlayout->addWidget( new TQLabel( i18n("Search providers:" ), this ) );
+ TQVBoxLayout *boxtqlayout = new TQVBoxLayout( htqlayout, KDialog::spacingHint() );
+ boxtqlayout->addWidget( new TQLabel( i18n("Search providers:" ), this ) );
providersBox = new KListBox( this, "providersBox" );
- boxlayout->addWidget(providersBox);
+ boxtqlayout->addWidget(providersBox);
- boxButtons = new KButtonBox( this, Vertical );
- boxButtons->addButton( i18n( "New Search Provider" ), this, TQT_SLOT( newSearch() ) );
- boxButtons->addButton( i18n( "Delete Search Provider" ), this, TQT_SLOT( delSearch() ) );
- boxButtons->addButton( i18n( "Move Up" ), this, TQT_SLOT( moveUpSearch() ) );
- boxButtons->addButton( i18n( "Move Down" ), this, TQT_SLOT( moveDownSearch() ) );
- boxButtons->layout();
- boxlayout->addWidget( boxButtons );
+ boxButtons = new KButtonBox( this,Qt::Vertical );
+ boxButtons->addButton( i18n( "New Search Provider" ), TQT_TQOBJECT(this), TQT_SLOT( newSearch() ) );
+ boxButtons->addButton( i18n( "Delete Search Provider" ), TQT_TQOBJECT(this), TQT_SLOT( delSearch() ) );
+ boxButtons->addButton( i18n( "Move Up" ), TQT_TQOBJECT(this), TQT_SLOT( moveUpSearch() ) );
+ boxButtons->addButton( i18n( "Move Down" ), TQT_TQOBJECT(this), TQT_SLOT( moveDownSearch() ) );
+ boxButtons->tqlayout();
+ boxtqlayout->addWidget( boxButtons );
// Edit box
TQGroupBox *propBox = new TQVGroupBox( i18n("Search Provider Properties" ), this );
@@ -76,8 +76,8 @@ LyricsCModule::LyricsCModule(TQObject *_parent) : CModule(i18n("Lyrics"), i18n("
/* ATTENTION to translators:
* The property names can't be translated. This means that $(author) must be kept as $(author), $(title) as $(title), etc, or it won't work.*/
TQLabel *textLabel = new TQLabel(i18n("For your query, you can use any property of your multimedia item, just enclosing it with a $(property).\n\nSome common properties used are $(title), $(author) and $(album). For example, to search in Google for the author, title and track, just use:\nhttp://www.google.com/search?q=$(author)+$(title)+$(track)"), propBox, "textLabel");
- textLabel->setAlignment(Qt::WordBreak);
- hlayout->addWidget( propBox, 1 );
+ textLabel->tqsetAlignment(TQt::WordBreak);
+ htqlayout->addWidget( propBox, 1 );
/* Signal/slots */
nameEdit->setEnabled( false );
@@ -88,7 +88,7 @@ LyricsCModule::LyricsCModule(TQObject *_parent) : CModule(i18n("Lyrics"), i18n("
- vlayout->addStretch();
+ vtqlayout->addStretch();
reopen();
save();
}
@@ -205,7 +205,7 @@ void LyricsCModule::reopen() {
queryList = conf->readListEntry( "queryList" );
nameList = conf->readListEntry( "nameList" );
if ( queryList.count() == 0 && nameList.count() == 0 ) {
- queryList = TQStringList::split( ",", DEFAULT_QUERY );
+ queryList = TQStringList::split( ",", DEFAULT_TQUERY );
nameList = TQStringList::split( ",", DEFAULT_NAME );
}
TQStringList::Iterator queryIt, nameIt;