Rename KIcon to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent c44bd98187
commit 8cb8ba0f95

@ -61,7 +61,7 @@ eqchemView::eqchemView(TQWidget *parent) : TQWidget(parent)
l->addWidget(m_eqclear, 1, 0); l->addWidget(m_eqclear, 1, 0);
m_eqclear->setIconSet( TDEGlobal::instance()->iconLoader()->loadIconSet("locationbar_erase", m_eqclear->setIconSet( TDEGlobal::instance()->iconLoader()->loadIconSet("locationbar_erase",
KIcon::NoGroup, 22 /*KIcon::SizeSmallMedium*/) ); TDEIcon::NoGroup, 22 /*TDEIcon::SizeSmallMedium*/) );
connect(m_eqclear, TQT_SIGNAL(clicked()), m_eqedit, TQT_SLOT(clear()) ); connect(m_eqclear, TQT_SIGNAL(clicked()), m_eqedit, TQT_SLOT(clear()) );
} }

@ -45,7 +45,7 @@ KalziumTip::KalziumTip( TQWidget * parent, const char * name, WFlags f ) : TQWid
resize(0,0); resize(0,0);
hide(); //initailly hide it hide(); //initailly hide it
m_richText = 0; m_richText = 0;
m_noElemIcon = TDEGlobal::iconLoader()->loadIcon( "orbits", KIcon::NoGroup, 64 ); m_noElemIcon = TDEGlobal::iconLoader()->loadIcon( "orbits", TDEIcon::NoGroup, 64 );
setMouseTracking(true); // receice mouse move events setMouseTracking(true); // receice mouse move events
connect(&m_frameTimer, TQT_SIGNAL(timeout()), TQT_SLOT(internalUpdate())); connect(&m_frameTimer, TQT_SIGNAL(timeout()), TQT_SLOT(internalUpdate()));

@ -45,13 +45,13 @@ void LeitnerSystemView::drawSystem(TQPainter* p)
{ {
if(i == m_highlightedBox) if(i == m_highlightedBox)
{ {
//p->drawPixmap(12 + i * 64 + i*10, m_imageY, TDEGlobal::iconLoader()->loadIcon("leitnerbox", KIcon::Panel)); //p->drawPixmap(12 + i * 64 + i*10, m_imageY, TDEGlobal::iconLoader()->loadIcon("leitnerbox", TDEIcon::Panel));
p->drawRect(12 + i * 64 + i*10, m_imageY,64,64); p->drawRect(12 + i * 64 + i*10, m_imageY,64,64);
p->fillRect(12 + i * 64 + i*10, m_imageY,64,64, TQBrush(red)); p->fillRect(12 + i * 64 + i*10, m_imageY,64,64, TQBrush(red));
} }
else else
{ //for each box 74 = 64(pixmap) + 10(distance between two boxes) { //for each box 74 = 64(pixmap) + 10(distance between two boxes)
//p->drawPixmap(12 + i * 74, m_imageY, TDEGlobal::iconLoader()->loadIcon("leitnerbox", KIcon::Panel)); //p->drawPixmap(12 + i * 74, m_imageY, TDEGlobal::iconLoader()->loadIcon("leitnerbox", TDEIcon::Panel));
p->drawRect(12 + i * 64 + i*10, m_imageY,64,64); p->drawRect(12 + i * 64 + i*10, m_imageY,64,64);
} }
} }

@ -69,7 +69,7 @@ KEducaBuilder::KEducaBuilder(TQWidget* parent, const char *name, WFlags f )
init(); init();
configRead(); configRead();
setIcon( TDEGlobal::iconLoader()->loadIcon("control.png", setIcon( TDEGlobal::iconLoader()->loadIcon("control.png",
KIcon::Small) ); TDEIcon::Small) );
_isOpenFile = false; _isOpenFile = false;
} }

@ -77,8 +77,8 @@ ExporterAction::ExporterAction( const KigPart* doc, KigWidget* w,
TQString iconstr = exp->menuIcon(); TQString iconstr = exp->menuIcon();
if ( iconstr.isEmpty() ) if ( iconstr.isEmpty() )
return; return;
KIconLoader* l = doc->instance()->iconLoader(); TDEIconLoader* l = doc->instance()->iconLoader();
TQPixmap icon = l->loadIcon( iconstr, KIcon::Small, 16, KIcon::DefaultState, 0L, true ); TQPixmap icon = l->loadIcon( iconstr, TDEIcon::Small, 16, TDEIcon::DefaultState, 0L, true );
if ( !icon.isNull() ) if ( !icon.isNull() )
setIconSet( TQIconSet( icon ) ); setIconSet( TQIconSet( icon ) );
} }

@ -224,7 +224,7 @@ void KigPart::setupActions()
"edit_invert_selection" ); "edit_invert_selection" );
// we need icons... // we need icons...
KIconLoader* l = instance()->iconLoader(); TDEIconLoader* l = instance()->iconLoader();
TQPixmap tmp; TQPixmap tmp;
aDeleteObjects = new TDEAction( aDeleteObjects = new TDEAction(
@ -271,7 +271,7 @@ void KigPart::setupActions()
a = KStdAction::fitToPage( TQT_TQOBJECT(m_widget), TQT_SLOT( slotRecenterScreen() ), a = KStdAction::fitToPage( TQT_TQOBJECT(m_widget), TQT_SLOT( slotRecenterScreen() ),
actionCollection() ); actionCollection() );
// grr.. why isn't there an icon for this.. // grr.. why isn't there an icon for this..
a->setIconSet( TQIconSet( l->loadIcon( "view_fit_to_page", KIcon::Toolbar ) ) ); a->setIconSet( TQIconSet( l->loadIcon( "view_fit_to_page", TDEIcon::Toolbar ) ) );
a->setToolTip( i18n( "Recenter the screen on the document" ) ); a->setToolTip( i18n( "Recenter the screen on the document" ) );
a->setWhatsThis( i18n( "Recenter the screen on the document" ) ); a->setWhatsThis( i18n( "Recenter the screen on the document" ) );
@ -283,7 +283,7 @@ void KigPart::setupActions()
#ifdef KIG_PART_CPP_STD_FULLSCREEN_ACTION #ifdef KIG_PART_CPP_STD_FULLSCREEN_ACTION
a = KStdAction::fullScreen( TQT_TQOBJECT(m_widget), TQT_SLOT( toggleFullScreen() ), actionCollection(), (TQWidget*)(widget()->parent()),"fullscreen" ); a = KStdAction::fullScreen( TQT_TQOBJECT(m_widget), TQT_SLOT( toggleFullScreen() ), actionCollection(), (TQWidget*)(widget()->parent()),"fullscreen" );
#else #else
tmp = l->loadIcon( "window_fullscreen", KIcon::Toolbar ); tmp = l->loadIcon( "window_fullscreen", TDEIcon::Toolbar );
a = new TDEAction( a = new TDEAction(
i18n( "Full Screen" ), tmp, CTRL+SHIFT+Key_F, i18n( "Full Screen" ), tmp, CTRL+SHIFT+Key_F,
m_widget, TQT_SLOT( toggleFullScreen() ), m_widget, TQT_SLOT( toggleFullScreen() ),

@ -84,7 +84,7 @@ KigGUIAction::KigGUIAction( GUIAction* act,
TQObject* parent ) TQObject* parent )
: TDEAction( act->descriptiveName(), : TDEAction( act->descriptiveName(),
doc.instance()->iconLoader()->loadIcon( doc.instance()->iconLoader()->loadIcon(
act->iconFileName(), KIcon::Toolbar, 0, KIcon::DefaultState, 0L, true ), act->iconFileName(), TDEIcon::Toolbar, 0, TDEIcon::DefaultState, 0L, true ),
act->shortcut(), act->shortcut(),
0, 0, // no slot connection 0, 0, // no slot connection
parent, act->actionName() ), parent, act->actionName() ),

@ -131,7 +131,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="KIconButton"> <widget class="TDEIconButton">
<property name="name"> <property name="name">
<cstring>typeIcon</cstring> <cstring>typeIcon</cstring>
</property> </property>

@ -143,7 +143,7 @@ void TextLabelModeBase::leftReleased( TQMouseEvent* e, KigWidget* v )
int t; int t;
if ( iconfile && *iconfile ) if ( iconfile && *iconfile )
{ {
TQPixmap pix = mdoc.instance()->iconLoader()->loadIcon( iconfile, KIcon::User ); TQPixmap pix = mdoc.instance()->iconLoader()->loadIcon( iconfile, TDEIcon::User );
t = p->insertItem( TQIconSet( pix ), s, i + 1 ); t = p->insertItem( TQIconSet( pix ), s, i + 1 );
} }
else else

@ -306,8 +306,8 @@ NormalModePopupObjects::NormalModePopupObjects( KigPart& part,
insertItem( menunames[i], mmenus[i], i, index++ ); insertItem( menunames[i], mmenus[i], i, index++ );
else else
{ {
KIconLoader* l = part.instance()->iconLoader(); TDEIconLoader* l = part.instance()->iconLoader();
TQPixmap icon = l->loadIcon( menuicons[i], KIcon::Small, 22, KIcon::DefaultState, 0L, true ); TQPixmap icon = l->loadIcon( menuicons[i], TDEIcon::Small, 22, TDEIcon::DefaultState, 0L, true );
insertItem( TQIconSet( icon ), menunames[i], mmenus[i], i, index++ ); insertItem( TQIconSet( icon ), menunames[i], mmenus[i], i, index++ );
} }
}; };
@ -375,7 +375,7 @@ void BuiltinObjectActionsProvider::fillUpMenu( NormalModePopupObjects& popup, in
{ {
if ( menu == NormalModePopupObjects::ToplevelMenu ) if ( menu == NormalModePopupObjects::ToplevelMenu )
{ {
KIconLoader* l = popup.part().instance()->iconLoader(); TDEIconLoader* l = popup.part().instance()->iconLoader();
std::vector<ObjectHolder*> os = popup.objects(); std::vector<ObjectHolder*> os = popup.objects();
/* /*
@ -397,9 +397,9 @@ void BuiltinObjectActionsProvider::fillUpMenu( NormalModePopupObjects& popup, in
popup.addAction( menu, i18n( "&Show" ), nextfree+1 ); popup.addAction( menu, i18n( "&Show" ), nextfree+1 );
} }
nextfree += 2; nextfree += 2;
TQPixmap p = l->loadIcon( "move", KIcon::Toolbar ); TQPixmap p = l->loadIcon( "move", TDEIcon::Toolbar );
popup.addAction( menu, p, i18n( "&Move" ), nextfree++ ); popup.addAction( menu, p, i18n( "&Move" ), nextfree++ );
p = l->loadIcon( "editdelete", KIcon::Toolbar ); p = l->loadIcon( "editdelete", TDEIcon::Toolbar );
popup.addAction( menu, p, i18n( "&Delete" ), nextfree++ ); popup.addAction( menu, p, i18n( "&Delete" ), nextfree++ );
} }
else if ( menu == NormalModePopupObjects::SetColorMenu ) else if ( menu == NormalModePopupObjects::SetColorMenu )
@ -756,7 +756,7 @@ void ObjectConstructorActionsProvider::fillUpMenu( NormalModePopupObjects& popup
TQCString iconfile = (*i)->iconFileName(); TQCString iconfile = (*i)->iconFileName();
if ( !iconfile.isEmpty() && !iconfile.isNull() ) if ( !iconfile.isEmpty() && !iconfile.isNull() )
{ {
TQPixmap icon = popup.part().instance()->iconLoader()->loadIcon( iconfile, KIcon::Toolbar, 22, KIcon::DefaultState, 0L, true ); TQPixmap icon = popup.part().instance()->iconLoader()->loadIcon( iconfile, TDEIcon::Toolbar, 22, TDEIcon::DefaultState, 0L, true );
popup.addAction( menu, icon, (*i)->descriptiveName(), nextfree++ ); popup.addAction( menu, icon, (*i)->descriptiveName(), nextfree++ );
} }
else else
@ -881,7 +881,7 @@ void PropertiesActionsProvider::fillUpMenu( NormalModePopupObjects& popup,
{ {
if ( iconfile && *iconfile ) if ( iconfile && *iconfile )
{ {
TQPixmap pix = popup.part().instance()->iconLoader()->loadIcon( iconfile, KIcon::Toolbar, 22, KIcon::DefaultState, 0L, true ); TQPixmap pix = popup.part().instance()->iconLoader()->loadIcon( iconfile, TDEIcon::Toolbar, 22, TDEIcon::DefaultState, 0L, true );
popup.addAction( menu, pix, i18n( o->imp()->properties()[i] ), nextfree++ ); popup.addAction( menu, pix, i18n( o->imp()->properties()[i] ), nextfree++ );
} }
else else
@ -1052,8 +1052,8 @@ void ScriptActionsProvider::fillUpMenu( NormalModePopupObjects& popup, int menu,
{ {
if ( menu == NormalModePopupObjects::StartMenu ) if ( menu == NormalModePopupObjects::StartMenu )
{ {
KIconLoader* l = popup.part().instance()->iconLoader(); TDEIconLoader* l = popup.part().instance()->iconLoader();
TQPixmap p = l->loadIcon( ScriptType::icon( ScriptType::Python ), KIcon::Toolbar, 22, KIcon::DefaultState, 0L, true ); TQPixmap p = l->loadIcon( ScriptType::icon( ScriptType::Python ), TDEIcon::Toolbar, 22, TDEIcon::DefaultState, 0L, true );
popup.addAction( menu, p, i18n( "Python Script" ), nextfree++ ); popup.addAction( menu, p, i18n( "Python Script" ), nextfree++ );
mns++; mns++;
} }

@ -68,10 +68,10 @@ TypesDialog::TypesDialog( TQWidget* parent, KigPart& part )
buttonOk->setGuiItem( KStdGuiItem::ok() ); buttonOk->setGuiItem( KStdGuiItem::ok() );
buttonCancel->setGuiItem( KStdGuiItem::cancel() ); buttonCancel->setGuiItem( KStdGuiItem::cancel() );
il = part.instance()->iconLoader(); il = part.instance()->iconLoader();
buttonEdit->setIconSet( TQIconSet( il->loadIcon( "edit", KIcon::Small ) ) ); buttonEdit->setIconSet( TQIconSet( il->loadIcon( "edit", TDEIcon::Small ) ) );
buttonRemove->setIconSet( TQIconSet( il->loadIcon( "editdelete", KIcon::Small ) ) ); buttonRemove->setIconSet( TQIconSet( il->loadIcon( "editdelete", TDEIcon::Small ) ) );
buttonExport->setIconSet( TQIconSet( il->loadIcon( "fileexport", KIcon::Small ) ) ); buttonExport->setIconSet( TQIconSet( il->loadIcon( "fileexport", TDEIcon::Small ) ) );
buttonImport->setIconSet( TQIconSet( il->loadIcon( "fileimport", KIcon::Small ) ) ); buttonImport->setIconSet( TQIconSet( il->loadIcon( "fileimport", TDEIcon::Small ) ) );
typeList->setColumnWidth( 0, 22 ); typeList->setColumnWidth( 0, 22 );
typeList->setColumnWidth( 1, 140 ); typeList->setColumnWidth( 1, 140 );
@ -96,7 +96,7 @@ TQListViewItem* TypesDialog::newListItem( Macro* m )
TQCString ifn = m->action->iconFileName(); TQCString ifn = m->action->iconFileName();
if ( !ifn.isNull() ) if ( !ifn.isNull() )
{ {
TQPixmap p = il->loadIcon( ifn, KIcon::Small ); TQPixmap p = il->loadIcon( ifn, TDEIcon::Small );
e->setPixmap( 0, p ); e->setPixmap( 0, p );
} }
return e; return e;

@ -43,7 +43,7 @@ class TypesDialog : public TypesDialogBase
// necessary because some MacroList functions need it.. // necessary because some MacroList functions need it..
KigPart& mpart; KigPart& mpart;
const KIconLoader* il; const TDEIconLoader* il;
TQPopupMenu* popup; TQPopupMenu* popup;
public: public:
TypesDialog( TQWidget* parent, KigPart& ); TypesDialog( TQWidget* parent, KigPart& );

@ -239,8 +239,8 @@ void ScriptModeBase::setScriptType( ScriptType::Type type )
mwizard->setType( mtype ); mwizard->setType( mtype );
if ( mtype != ScriptType::Unknown ) if ( mtype != ScriptType::Unknown )
{ {
KIconLoader* il = mpart.instance()->iconLoader(); TDEIconLoader* il = mpart.instance()->iconLoader();
mwizard->setIcon( il->loadIcon( ScriptType::icon( mtype ), KIcon::Small ) ); mwizard->setIcon( il->loadIcon( ScriptType::icon( mtype ), TDEIcon::Small ) );
} }
} }

@ -184,7 +184,7 @@ void KLatin::resetGUI()
// various options that are available to choose // various options that are available to choose
// and setCentralWidget it. // and setCentralWidget it.
klatinchoose = new KLatinChoose(this); klatinchoose = new KLatinChoose(this);
klatinchoose->QuitButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("exit", KIcon::Small)); klatinchoose->QuitButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("exit", TDEIcon::Small));
klatinchoose->show(); klatinchoose->show();
setCentralWidget(klatinchoose); setCentralWidget(klatinchoose);

@ -38,8 +38,8 @@ KLatinGrammar::KLatinGrammar(TQWidget* parent, const char *name)
m_totalCorrect = 0; m_totalCorrect = 0;
m_numWrong = 0; m_numWrong = 0;
OKButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("button_ok", KIcon::Small)); OKButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("button_ok", TDEIcon::Small));
BackButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("back", KIcon::Small)); BackButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("back", TDEIcon::Small));
// Set connections // Set connections
connect(BackButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(goBack())); connect(BackButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(goBack()));

@ -33,9 +33,9 @@
KLatinVerbs::KLatinVerbs(TQWidget* parent, const char *name) KLatinVerbs::KLatinVerbs(TQWidget* parent, const char *name)
: KLatinVerbsWidget(parent, name) : KLatinVerbsWidget(parent, name)
{ {
OKButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("button_ok", KIcon::Small)); OKButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("button_ok", TDEIcon::Small));
BackButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("back", KIcon::Small)); BackButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("back", TDEIcon::Small));
ChangeButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("apply", KIcon::Small)); ChangeButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("apply", TDEIcon::Small));
ChooseConjugation->insertItem(i18n("1st")); ChooseConjugation->insertItem(i18n("1st"));
ChooseConjugation->insertItem(i18n("2nd")); ChooseConjugation->insertItem(i18n("2nd"));

@ -35,7 +35,7 @@
KLatinVocab::KLatinVocab(TQWidget* parent, const char *name) KLatinVocab::KLatinVocab(TQWidget* parent, const char *name)
: KLatinVocabWidget(parent, name) : KLatinVocabWidget(parent, name)
{ {
BackButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("back", KIcon::Small)); BackButton->setIconSet(TDEGlobal::iconLoader()->loadIconSet("back", TDEIcon::Small));
m_vocabFile = TQString(); m_vocabFile = TQString();

@ -49,7 +49,7 @@ KPercentage::KPercentage( const char *name ) :
splash_screen->raise(); splash_screen->raise();
// Icon loader for the button's icons // Icon loader for the button's icons
KIconLoader icon_loader; TDEIconLoader icon_loader;
// let's set a suitable, not too small font size // let's set a suitable, not too small font size
TQFont the_font( font() ); TQFont the_font( font() );
@ -85,11 +85,11 @@ KPercentage::KPercentage( const char *name ) :
KPushButton *button_percentage = new KPushButton( i18n( "??% o&f x = y" ), this ); KPushButton *button_percentage = new KPushButton( i18n( "??% o&f x = y" ), this );
KPushButton *button_random = new KPushButton( i18n( "??" ), this ); KPushButton *button_random = new KPushButton( i18n( "??" ), this );
KPushButton *button_help = new KPushButton( KStdGuiItem::help().text(), this ); KPushButton *button_help = new KPushButton( KStdGuiItem::help().text(), this );
button_help->setIconSet( TQIconSet( icon_loader.loadIcon( "help", KIcon::NoGroup, 32 ) ) ); button_help->setIconSet( TQIconSet( icon_loader.loadIcon( "help", TDEIcon::NoGroup, 32 ) ) );
KHelpMenu *help_menu = new KHelpMenu( this, TDEGlobal::instance()->aboutData(), true ); KHelpMenu *help_menu = new KHelpMenu( this, TDEGlobal::instance()->aboutData(), true );
button_help->setPopup( ( TQPopupMenu* ) ( help_menu->menu() ) ); button_help->setPopup( ( TQPopupMenu* ) ( help_menu->menu() ) );
KPushButton *button_close = new KPushButton( i18n( "E&xit" ), this ); KPushButton *button_close = new KPushButton( i18n( "E&xit" ), this );
button_close->setIconSet( TQIconSet( icon_loader.loadIcon( "exit", KIcon::NoGroup, 32 ) ) ); button_close->setIconSet( TQIconSet( icon_loader.loadIcon( "exit", TDEIcon::NoGroup, 32 ) ) );
combo_box_level = new KComboBox( this ); combo_box_level = new KComboBox( this );
combo_box_level->insertItem( i18n( "Easy" ) ); combo_box_level->insertItem( i18n( "Easy" ) );

@ -94,9 +94,9 @@ KPercentMain::KPercentMain( TQWidget *parent, const char *name ) :
push_button_cancel = new TQPushButton( this, "push_button_cancel" ); push_button_cancel = new TQPushButton( this, "push_button_cancel" );
push_button_cancel->setText( KStdGuiItem::cancel().text() ); push_button_cancel->setText( KStdGuiItem::cancel().text() );
KIconLoader icon_loader; TDEIconLoader icon_loader;
push_button_apply->setIconSet( TQIconSet( icon_loader.loadIcon( "button_ok", KIcon::NoGroup, 32 ) ) ); push_button_apply->setIconSet( TQIconSet( icon_loader.loadIcon( "button_ok", TDEIcon::NoGroup, 32 ) ) );
push_button_cancel->setIconSet( TQIconSet( icon_loader.loadIcon( "button_cancel", KIcon::NoGroup, 32 ) ) ); push_button_cancel->setIconSet( TQIconSet( icon_loader.loadIcon( "button_cancel", TDEIcon::NoGroup, 32 ) ) );
label_1 = new TQLabel( this, "label_1" ); label_1 = new TQLabel( this, "label_1" );
label_1->setText( i18n( " % of " ) ); label_1->setText( i18n( " % of " ) );

@ -65,11 +65,11 @@ FILE *CCDwfp;
brightnessChanged(brightnessBar->value()); brightnessChanged(brightnessBar->value());
contrastChanged(contrastBar->value()); contrastChanged(contrastBar->value());
KIconLoader *icons = TDEGlobal::iconLoader(); TDEIconLoader *icons = TDEGlobal::iconLoader();
playPix = icons->loadIcon( "player_play", KIcon::Toolbar ); playPix = icons->loadIcon( "player_play", TDEIcon::Toolbar );
pausePix = icons->loadIcon( "player_pause", KIcon::Toolbar ); pausePix = icons->loadIcon( "player_pause", TDEIcon::Toolbar );
capturePix = icons->loadIcon( "frame_image", KIcon::Toolbar ); capturePix = icons->loadIcon( "frame_image", TDEIcon::Toolbar );
playB->setPixmap(pausePix); playB->setPixmap(pausePix);
captureB->setPixmap(capturePix); captureB->setPixmap(capturePix);

@ -63,11 +63,11 @@ INDIDriver::INDIDriver(TQWidget *parent) : devManager( parent )
localListView->setSorting(-1); localListView->setSorting(-1);
clientListView->setSorting(-1); clientListView->setSorting(-1);
KIconLoader *icons = TDEGlobal::iconLoader(); TDEIconLoader *icons = TDEGlobal::iconLoader();
runningPix = icons->loadIcon( "exec", KIcon::Small); runningPix = icons->loadIcon( "exec", TDEIcon::Small);
stopPix = icons->loadIcon( "button_cancel", KIcon::Small); stopPix = icons->loadIcon( "button_cancel", TDEIcon::Small);
localMode = icons->loadIcon( "network_local", KIcon::Small); localMode = icons->loadIcon( "network_local", TDEIcon::Small);
serverMode = icons->loadIcon( "network", KIcon::Small); serverMode = icons->loadIcon( "network", TDEIcon::Small);
LocalpopMenu = new TDEPopupMenu(localListView); LocalpopMenu = new TDEPopupMenu(localListView);
LocalpopMenu->insertItem( runningPix, i18n("Run Service") , 0); LocalpopMenu->insertItem( runningPix, i18n("Run Service") , 0);
@ -75,9 +75,9 @@ INDIDriver::INDIDriver(TQWidget *parent) : devManager( parent )
localListView->setRootIsDecorated(true); localListView->setRootIsDecorated(true);
connected = icons->loadIcon( "connect_established", KIcon::Small); connected = icons->loadIcon( "connect_established", TDEIcon::Small);
disconnected = icons->loadIcon( "connect_no", KIcon::Small); disconnected = icons->loadIcon( "connect_no", TDEIcon::Small);
establishConnection = icons->loadIcon( "connect_creating", KIcon::Small); establishConnection = icons->loadIcon( "connect_creating", TDEIcon::Small);
ClientpopMenu = new TDEPopupMenu(clientListView); ClientpopMenu = new TDEPopupMenu(clientListView);
ClientpopMenu->insertItem( establishConnection, i18n("Connect") , 0); ClientpopMenu->insertItem( establishConnection, i18n("Connect") , 0);

@ -27,8 +27,8 @@ INDIFITSConf::INDIFITSConf(TQWidget* parent, const char* name, bool modal, WFlag
: INDIConf(parent,name, modal,fl) : INDIConf(parent,name, modal,fl)
{ {
KIconLoader *icons = TDEGlobal::iconLoader(); TDEIconLoader *icons = TDEGlobal::iconLoader();
selectDirB->setPixmap( icons->loadIcon( "fileopen", KIcon::Toolbar ) ); selectDirB->setPixmap( icons->loadIcon( "fileopen", TDEIcon::Toolbar ) );
connect(selectDirB, TQT_SIGNAL(clicked()), this, TQT_SLOT(saveFITSDirectory())); connect(selectDirB, TQT_SIGNAL(clicked()), this, TQT_SLOT(saveFITSDirectory()));
connect(filterCombo, TQT_SIGNAL(activated (int)), this, TQT_SLOT(comboUpdate(int))); connect(filterCombo, TQT_SIGNAL(activated (int)), this, TQT_SLOT(comboUpdate(int)));
} }

@ -52,11 +52,11 @@ FILE *wfp;
//videoFrameLayout = new TQVBoxLayout(videoFrame, 0, 0); //videoFrameLayout = new TQVBoxLayout(videoFrame, 0, 0);
streamFrame = new VideoWG(videoFrame); streamFrame = new VideoWG(videoFrame);
KIconLoader *icons = TDEGlobal::iconLoader(); TDEIconLoader *icons = TDEGlobal::iconLoader();
playPix = icons->loadIcon( "player_play", KIcon::Toolbar ); playPix = icons->loadIcon( "player_play", TDEIcon::Toolbar );
pausePix = icons->loadIcon( "player_pause", KIcon::Toolbar ); pausePix = icons->loadIcon( "player_pause", TDEIcon::Toolbar );
capturePix = icons->loadIcon( "frame_image", KIcon::Toolbar ); capturePix = icons->loadIcon( "frame_image", TDEIcon::Toolbar );
playB->setPixmap(pausePix); playB->setPixmap(pausePix);
captureB->setPixmap(capturePix); captureB->setPixmap(capturePix);

@ -105,12 +105,12 @@ ObservingList::ObservingList( KStars *_ks, TQWidget* parent )
obsList.setAutoDelete( false ); //do NOT delete removed pointers! obsList.setAutoDelete( false ); //do NOT delete removed pointers!
//Add icons to Push Buttons //Add icons to Push Buttons
KIconLoader *icons = TDEGlobal::iconLoader(); TDEIconLoader *icons = TDEGlobal::iconLoader();
ui->OpenButton->setPixmap( icons->loadIcon( "fileopen", KIcon::Toolbar ) ); ui->OpenButton->setPixmap( icons->loadIcon( "fileopen", TDEIcon::Toolbar ) );
ui->SaveButton->setPixmap( icons->loadIcon( "filesave", KIcon::Toolbar ) ); ui->SaveButton->setPixmap( icons->loadIcon( "filesave", TDEIcon::Toolbar ) );
ui->SaveAsButton->setPixmap( icons->loadIcon( "filesaveas", KIcon::Toolbar ) ); ui->SaveAsButton->setPixmap( icons->loadIcon( "filesaveas", TDEIcon::Toolbar ) );
ui->WizardButton->setPixmap( icons->loadIcon( "wizard", KIcon::Toolbar ) ); ui->WizardButton->setPixmap( icons->loadIcon( "wizard", TDEIcon::Toolbar ) );
ui->MiniButton->setPixmap( icons->loadIcon( "window_nofullscreen", KIcon::Toolbar ) ); ui->MiniButton->setPixmap( icons->loadIcon( "window_nofullscreen", TDEIcon::Toolbar ) );
ui->CenterButton->setEnabled( false ); ui->CenterButton->setEnabled( false );
ui->ScopeButton->setEnabled( false ); ui->ScopeButton->setEnabled( false );
@ -676,7 +676,7 @@ void ObservingList::slotWizard() {
void ObservingList::slotToggleSize() { void ObservingList::slotToggleSize() {
if ( isLarge() ) { if ( isLarge() ) {
ui->MiniButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "window_fullscreen", KIcon::Toolbar ) ); ui->MiniButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "window_fullscreen", TDEIcon::Toolbar ) );
//switch widget stack to show TinyTable //switch widget stack to show TinyTable
ui->TableStack->raiseWidget( ui->TinyTable ); ui->TableStack->raiseWidget( ui->TinyTable );
@ -697,7 +697,7 @@ void ObservingList::slotToggleSize() {
bIsLarge = false; bIsLarge = false;
} else { } else {
ui->MiniButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "window_nofullscreen", KIcon::Toolbar ) ); ui->MiniButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "window_nofullscreen", TDEIcon::Toolbar ) );
//switch widget stack to show FullTable //switch widget stack to show FullTable
ui->TableStack->raiseWidget( ui->FullTable ); ui->TableStack->raiseWidget( ui->FullTable );

@ -48,7 +48,7 @@ PlanetViewer::PlanetViewer(TQWidget *parent, const char *name)
pw->timeStep->setDaysOnly( true ); pw->timeStep->setDaysOnly( true );
pw->timeStep->tsbox()->setValue( 1 ); //start with 1-day timestep pw->timeStep->tsbox()->setValue( 1 ); //start with 1-day timestep
pw->RunButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "1rightarrow", KIcon::Toolbar ) ); pw->RunButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "1rightarrow", TDEIcon::Toolbar ) );
pw->dateBox->setDate( ((KStars*)parent)->data()->lt().date() ); pw->dateBox->setDate( ((KStars*)parent)->data()->lt().date() );
vlay->addWidget( pw ); vlay->addWidget( pw );
@ -115,11 +115,11 @@ void PlanetViewer::slotRunClock() {
isClockRunning = !isClockRunning; isClockRunning = !isClockRunning;
if ( isClockRunning ) { if ( isClockRunning ) {
pw->RunButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "player_pause", KIcon::Toolbar ) ); pw->RunButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "player_pause", TDEIcon::Toolbar ) );
tmr.start( 100 ); tmr.start( 100 );
// pw->dateBox->setEnabled( false ); // pw->dateBox->setEnabled( false );
} else { } else {
pw->RunButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "1rightarrow", KIcon::Toolbar ) ); pw->RunButton->setPixmap( TDEGlobal::iconLoader()->loadIcon( "1rightarrow", TDEIcon::Toolbar ) );
tmr.stop(); tmr.stop();
// pw->dateBox->setEnabled( true ); // pw->dateBox->setEnabled( true );
} }

@ -265,17 +265,17 @@ ScriptBuilder::ScriptBuilder( TQWidget *parent, const char *name )
new TQListViewItem(INDI_filter, setINDIFilterNumFunc->prototype()); new TQListViewItem(INDI_filter, setINDIFilterNumFunc->prototype());
//Add icons to Push Buttons //Add icons to Push Buttons
KIconLoader *icons = TDEGlobal::iconLoader(); TDEIconLoader *icons = TDEGlobal::iconLoader();
sb->NewButton->setIconSet( icons->loadIcon( "filenew", KIcon::Toolbar ) ); sb->NewButton->setIconSet( icons->loadIcon( "filenew", TDEIcon::Toolbar ) );
sb->OpenButton->setIconSet( icons->loadIcon( "fileopen", KIcon::Toolbar ) ); sb->OpenButton->setIconSet( icons->loadIcon( "fileopen", TDEIcon::Toolbar ) );
sb->SaveButton->setIconSet( icons->loadIconSet( "filesave", KIcon::Toolbar ) ); sb->SaveButton->setIconSet( icons->loadIconSet( "filesave", TDEIcon::Toolbar ) );
sb->SaveAsButton->setIconSet( icons->loadIconSet( "filesaveas", KIcon::Toolbar ) ); sb->SaveAsButton->setIconSet( icons->loadIconSet( "filesaveas", TDEIcon::Toolbar ) );
sb->RunButton->setIconSet( icons->loadIconSet( "launch", KIcon::Toolbar ) ); sb->RunButton->setIconSet( icons->loadIconSet( "launch", TDEIcon::Toolbar ) );
sb->CopyButton->setIconSet( icons->loadIconSet( "reload", KIcon::Toolbar ) ); sb->CopyButton->setIconSet( icons->loadIconSet( "reload", TDEIcon::Toolbar ) );
sb->AddButton->setIconSet( icons->loadIconSet( "back", KIcon::Toolbar ) ); sb->AddButton->setIconSet( icons->loadIconSet( "back", TDEIcon::Toolbar ) );
sb->RemoveButton->setIconSet( icons->loadIconSet( "forward", KIcon::Toolbar ) ); sb->RemoveButton->setIconSet( icons->loadIconSet( "forward", TDEIcon::Toolbar ) );
sb->UpButton->setIconSet( icons->loadIconSet( "up", KIcon::Toolbar ) ); sb->UpButton->setIconSet( icons->loadIconSet( "up", TDEIcon::Toolbar ) );
sb->DownButton->setIconSet( icons->loadIconSet( "down", KIcon::Toolbar ) ); sb->DownButton->setIconSet( icons->loadIconSet( "down", TDEIcon::Toolbar ) );
//Prepare the widget stack //Prepare the widget stack
argBlank = new TQWidget( sb->ArgStack ); argBlank = new TQWidget( sb->ArgStack );

@ -168,7 +168,7 @@ void kvoctrainApp::initActions()
editRemoveSelectedArea->setWhatsThis(i18n("Delete the selected rows")); editRemoveSelectedArea->setWhatsThis(i18n("Delete the selected rows"));
editRemoveSelectedArea->setToolTip(editRemoveSelectedArea->whatsThis()); editRemoveSelectedArea->setToolTip(editRemoveSelectedArea->whatsThis());
editSaveSelectedArea = new TDEAction(i18n("Save E&ntries in Query As..."), TDEGlobal::iconLoader()->loadIcon("filesaveas", KIcon::Small), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSaveSelection()), actionCollection(),"edit_save_selected_area"); editSaveSelectedArea = new TDEAction(i18n("Save E&ntries in Query As..."), TDEGlobal::iconLoader()->loadIcon("filesaveas", TDEIcon::Small), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSaveSelection()), actionCollection(),"edit_save_selected_area");
editSaveSelectedArea->setWhatsThis(i18n("Save the entries in the query as a new vocabulary")); editSaveSelectedArea->setWhatsThis(i18n("Save the entries in the query as a new vocabulary"));
editSaveSelectedArea->setToolTip(editSaveSelectedArea->whatsThis()); editSaveSelectedArea->setToolTip(editSaveSelectedArea->whatsThis());

@ -57,8 +57,8 @@ KVocTrainTable::KVocTrainTable(kvoctrainDoc *doc, const LangSet *ls, TQWidget *p
triggerSect = -1; triggerSect = -1;
m_pixInQuery = TQPixmap(TDEGlobal::iconLoader()->loadIcon("ok", KIcon::Small)); m_pixInQuery = TQPixmap(TDEGlobal::iconLoader()->loadIcon("ok", TDEIcon::Small));
m_pixInactive = TQPixmap(TDEGlobal::iconLoader()->loadIcon("no", KIcon::Small)); m_pixInactive = TQPixmap(TDEGlobal::iconLoader()->loadIcon("no", TDEIcon::Small));
delayTimer = new TQTimer(this); delayTimer = new TQTimer(this);
connect(delayTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(menuTriggerTimeout())); connect(delayTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(menuTriggerTimeout()));

@ -27,8 +27,8 @@ DlgLanguage::DlgLanguage(TQWidget *parent, const char *name, bool modal): KDialo
{ {
dlgBase = new DlgLanguageBase( this, "Dlg" ); dlgBase = new DlgLanguageBase( this, "Dlg" );
setMainWidget(dlgBase); setMainWidget(dlgBase);
dlgBase -> picLanguage1 -> setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel)); dlgBase -> picLanguage1 -> setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
dlgBase -> picLanguage2 -> setPixmap(TDEGlobal::iconLoader()->loadIcon("answer", KIcon::Panel)); dlgBase -> picLanguage2 -> setPixmap(TDEGlobal::iconLoader()->loadIcon("answer", TDEIcon::Panel));
completion1 = new KCompletion(); completion1 = new KCompletion();
completion1->setItems(Prefs::columnTitles1()); completion1->setItems(Prefs::columnTitles1());

@ -181,22 +181,22 @@ void FlashView::updateScore()
TQString s; TQString s;
s = s.setNum(m_quiz->questionCount(), 10); s = s.setNum(m_quiz->questionCount(), 10);
lblScoreCount->setText(s); lblScoreCount->setText(s);
picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel)); picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
s = m_score->answerText(); s = m_score->answerText();
lblScoreAnswered->setText(s); lblScoreAnswered->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel)); picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
s = m_score->correctText(); s = m_score->correctText();
lblScoreCorrect->setText(s); lblScoreCorrect->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
s = m_score->errorText(); s = m_score->errorText();
lblScoreError->setText(s); lblScoreError->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel)); picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
} }
void FlashView::slotTimer( ) void FlashView::slotTimer( )

@ -205,11 +205,11 @@ void KWordQuizApp::initActions()
TDEPopupMenu *popup = mode->popupMenu(); TDEPopupMenu *popup = mode->popupMenu();
popup->clear(); popup->clear();
popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode1", KIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode1()), 0, 0); popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode1", TDEIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode1()), 0, 0);
popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode2", KIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode2()), 0, 1); popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode2", TDEIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode2()), 0, 1);
popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode3", KIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode3()), 0, 2); popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode3", TDEIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode3()), 0, 2);
popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode4", KIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode4()), 0, 3); popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode4", TDEIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode4()), 0, 3);
popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode5", KIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode5()), 0, 4); popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("mode5", TDEIcon::Toolbar), "", TQT_TQOBJECT(this), TQT_SLOT(slotMode5()), 0, 4);
mode1 = new TDEToggleAction("", "mode1", 0, TQT_TQOBJECT(this), TQT_SLOT(slotMode1()), actionCollection(),"mode_1"); mode1 = new TDEToggleAction("", "mode1", 0, TQT_TQOBJECT(this), TQT_SLOT(slotMode1()), actionCollection(),"mode_1");
mode2 = new TDEToggleAction("", "mode2", 0, TQT_TQOBJECT(this), TQT_SLOT(slotMode2()), actionCollection(),"mode_2"); mode2 = new TDEToggleAction("", "mode2", 0, TQT_TQOBJECT(this), TQT_SLOT(slotMode2()), actionCollection(),"mode_2");

@ -120,7 +120,7 @@ void MultipleView::slotCheck()
if (fIsCorrect) if (fIsCorrect)
{ {
picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
lblCorrectHeader->clear(); lblCorrectHeader->clear();
picCorrectAnswer->clear(); picCorrectAnswer->clear();
lblCorrect->clear(); lblCorrect->clear();
@ -132,11 +132,11 @@ void MultipleView::slotCheck()
{ {
m_error++; m_error++;
picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel)); picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
lblCorrect->setText(m_quiz->answer(m_question)); lblCorrect->setText(m_quiz->answer(m_question));
//lblCorrect->setFont(m_quiz->fontAnswer(m_question)); //lblCorrect->setFont(m_quiz->fontAnswer(m_question));
picCorrectAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picCorrectAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
lblCorrectHeader->setText(i18n("Correct Answer")); lblCorrectHeader->setText(i18n("Correct Answer"));
m_score->countIncrement(WTQScore::cdError); m_score->countIncrement(WTQScore::cdError);
updateScore(); updateScore();
@ -146,7 +146,7 @@ void MultipleView::slotCheck()
lblPreviousQuestionHeader->setText(i18n("Previous Question")); lblPreviousQuestionHeader->setText(i18n("Previous Question"));
lblPreviousQuestion->setText(m_quiz->question(m_question)); lblPreviousQuestion->setText(m_quiz->question(m_question));
//lblPreviousQuestion->setFont(m_quiz->fontQuestion(m_question)); //lblPreviousQuestion->setFont(m_quiz->fontQuestion(m_question));
picPrevious->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel)); picPrevious->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
lblYourAnswerHeader->setText(i18n("Your Answer")); lblYourAnswerHeader->setText(i18n("Your Answer"));
lblYourAnswer->setText(m_quiz->yourAnswer(m_question, ans)); lblYourAnswer->setText(m_quiz->yourAnswer(m_question, ans));
@ -168,7 +168,7 @@ void MultipleView::slotCheck()
opt1->hide(); opt1->hide();
opt2->hide(); opt2->hide();
opt3->hide(); opt3->hide();
picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel)); picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
picAnswer->clear(); picAnswer->clear();
} }
} }
@ -224,22 +224,22 @@ void MultipleView::updateScore()
TQString s; TQString s;
s = s.setNum(m_quiz->questionCount(), 10); s = s.setNum(m_quiz->questionCount(), 10);
lblScoreCount->setText(s); lblScoreCount->setText(s);
picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel)); picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
s = m_score->answerText(); s = m_score->answerText();
lblScoreAnswered->setText(s); lblScoreAnswered->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel)); picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
s = m_score->correctText(); s = m_score->correctText();
lblScoreCorrect->setText(s); lblScoreCorrect->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
s = m_score->errorText(); s = m_score->errorText();
lblScoreError->setText(s); lblScoreError->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel)); picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
} }
@ -253,7 +253,7 @@ void MultipleView::showQuestion(int i)
lblQuestion -> setText(m_quiz ->question(i)); lblQuestion -> setText(m_quiz ->question(i));
//lblQuestion -> setFont(m_quiz->fontQuestion(i)); //lblQuestion -> setFont(m_quiz->fontQuestion(i));
picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), KIcon::Panel)); picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), TDEIcon::Panel));
lblAnswerLanguage -> setText(m_quiz ->langAnswer(i)); lblAnswerLanguage -> setText(m_quiz ->langAnswer(i));
@ -278,7 +278,7 @@ void MultipleView::showQuestion(int i)
opt2->setChecked(false); opt2->setChecked(false);
opt3->setChecked(false); opt3->setChecked(false);
picAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), KIcon::Panel)); picAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), TDEIcon::Panel));
} }
void MultipleView::slotApplySettings( ) void MultipleView::slotApplySettings( )

@ -150,7 +150,7 @@ void QAView::slotCheck()
if (fIsCorrect) if (fIsCorrect)
{ {
picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
lblYourAnswer->setText(m_quiz->yourAnswer(m_question, txtAnswer->text())); lblYourAnswer->setText(m_quiz->yourAnswer(m_question, txtAnswer->text()));
lblCorrectHeader->clear(); lblCorrectHeader->clear();
picCorrectAnswer->clear(); picCorrectAnswer->clear();
@ -163,10 +163,10 @@ void QAView::slotCheck()
{ {
m_error++; m_error++;
picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel)); picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
lblYourAnswer->setText(highlightError(m_quiz->answer(m_question), m_quiz->yourAnswer(m_question, txtAnswer->text()))); lblYourAnswer->setText(highlightError(m_quiz->answer(m_question), m_quiz->yourAnswer(m_question, txtAnswer->text())));
lblCorrect->setText(m_quiz->answer(m_question)); lblCorrect->setText(m_quiz->answer(m_question));
picCorrectAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picCorrectAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
lblCorrectHeader->setText(i18n("Correct Answer")); lblCorrectHeader->setText(i18n("Correct Answer"));
m_score->countIncrement(WTQScore::cdError); m_score->countIncrement(WTQScore::cdError);
updateScore(); updateScore();
@ -175,7 +175,7 @@ void QAView::slotCheck()
lblPreviousQuestionHeader->setText(i18n("Previous Question")); lblPreviousQuestionHeader->setText(i18n("Previous Question"));
lblPreviousQuestion->setText(m_quiz->question(m_question)); lblPreviousQuestion->setText(m_quiz->question(m_question));
picPrevious->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel)); picPrevious->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
lblYourAnswerHeader->setText(i18n("Your Answer")); lblYourAnswerHeader->setText(i18n("Your Answer"));
if (++m_question < m_quiz->questionCount()) if (++m_question < m_quiz->questionCount())
@ -194,7 +194,7 @@ void QAView::slotCheck()
lblAnswerLanguage->clear(); lblAnswerLanguage->clear();
lblAnswerBlank->hide(); lblAnswerBlank->hide();
txtAnswer->hide(); txtAnswer->hide();
picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel)); picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
picAnswer->clear(); picAnswer->clear();
} }
} }
@ -245,22 +245,22 @@ void QAView::updateScore()
TQString s; TQString s;
s = s.setNum(m_quiz->questionCount(), 10); s = s.setNum(m_quiz->questionCount(), 10);
lblScoreCount->setText(s); lblScoreCount->setText(s);
picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel)); picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
s = m_score->answerText(); s = m_score->answerText();
lblScoreAnswered->setText(s); lblScoreAnswered->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel)); picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
s = m_score->correctText(); s = m_score->correctText();
lblScoreCorrect->setText(s); lblScoreCorrect->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel)); picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
s = m_score->errorText(); s = m_score->errorText();
lblScoreError->setText(s); lblScoreError->setText(s);
if (!s.isEmpty()) if (!s.isEmpty())
picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel)); picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
} }
@ -274,7 +274,7 @@ void QAView::showQuestion(int i)
lblQuestion -> setText(m_quiz ->question(i)); lblQuestion -> setText(m_quiz ->question(i));
//lblQuestion -> setFont(m_quiz->fontQuestion(i)); //lblQuestion -> setFont(m_quiz->fontQuestion(i));
picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), KIcon::Panel)); picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), TDEIcon::Panel));
lblAnswerLanguage -> setText(m_quiz ->langAnswer(i)); lblAnswerLanguage -> setText(m_quiz ->langAnswer(i));
@ -290,7 +290,7 @@ void QAView::showQuestion(int i)
//txtAnswer->setFont(m_quiz->fontAnswer(i)); //txtAnswer->setFont(m_quiz->fontAnswer(i));
txtAnswer -> setText(""); txtAnswer -> setText("");
picAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), KIcon::Panel)); picAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), TDEIcon::Panel));
//@todo handle keyboard layouts //@todo handle keyboard layouts
} }

Loading…
Cancel
Save