Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 69e4de2f4c)
r14.1.x
Michele Calgaro 11 months ago
parent b06213ed1e
commit 845281400a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -23,7 +23,7 @@
artsPlayer::artsPlayer() : m_playobj(0)
{
m_endChecker = new TQTimer(this);
connect(m_endChecker, TQT_SIGNAL(timeout()), this, TQT_SLOT(checkEnded()));
connect(m_endChecker, TQ_SIGNAL(timeout()), this, TQ_SLOT(checkEnded()));
#ifndef WITHOUT_ARTS
m_dispatcher = new KArtsDispatcher;

@ -65,11 +65,11 @@ blinken::blinken() : TQWidget(0, 0, WStaticContents | WNoAutoErase), m_overHighs
show();
m_unhighlighter = new TQTimer(this);
connect(m_unhighlighter, TQT_SIGNAL(timeout()), this, TQT_SLOT(unhighlight()));
connect(m_unhighlighter, TQ_SIGNAL(timeout()), this, TQ_SLOT(unhighlight()));
connect(&m_game, TQT_SIGNAL(gameEnded()), this, TQT_SLOT(checkHS()));
connect(&m_game, TQT_SIGNAL(phaseChanged()), this, TQT_SLOT(update()));
connect(&m_game, TQT_SIGNAL(highlight(blinkenGame::color, bool)), this, TQT_SLOT(highlight(blinkenGame::color, bool)));
connect(&m_game, TQ_SIGNAL(gameEnded()), this, TQ_SLOT(checkHS()));
connect(&m_game, TQ_SIGNAL(phaseChanged()), this, TQ_SLOT(update()));
connect(&m_game, TQ_SIGNAL(highlight(blinkenGame::color, bool)), this, TQ_SLOT(highlight(blinkenGame::color, bool)));
m_helpMenu = new KHelpMenu(this, kapp->aboutData());

@ -20,7 +20,7 @@ blinkenGame::blinkenGame() : m_phase(starting)
{
m_artsPlayer = new artsPlayer;
m_waitTimer = new TQTimer(this);
connect(m_waitTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(waiting()));
connect(m_waitTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(waiting()));
}
blinkenGame::~blinkenGame()
@ -114,8 +114,8 @@ void blinkenGame::nextSound()
void blinkenGame::soundEnded()
{
TQTimer::singleShot(100, this, TQT_SLOT(nextSound()));
TQTimer::singleShot(50, this, TQT_SLOT(unhighlight()));
TQTimer::singleShot(100, this, TQ_SLOT(nextSound()));
TQTimer::singleShot(50, this, TQ_SLOT(unhighlight()));
}
void blinkenGame::unhighlight()
@ -135,7 +135,7 @@ void blinkenGame::waiting()
}
else m_sequence.append(generateColor());
connect(m_artsPlayer, TQT_SIGNAL(ended()), this, TQT_SLOT(soundEnded()));
connect(m_artsPlayer, TQ_SIGNAL(ended()), this, TQ_SLOT(soundEnded()));
m_nextColor = m_sequence.begin();
soundEnded();
}

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
about.addCredit("Steve Jordi", I18N_NOOP("GPL'ed his 'Steve' font so that we could use it"), "steve@sjordi.com");
TDECmdLineArgs::init(argc, argv, &about);
TDEApplication app;
app.connect(&app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit()));
app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit()));
TQFont f("Steve", 12, TQFont::Normal, true);
if (!fontChecker::checkInstalled(f, locate("appdata", "fonts/steve.ttf")))

@ -66,7 +66,7 @@ DetailedInfoDlg::DetailedInfoDlg( Element *el , TQWidget *parent, const char *na
createContent();
m_actionCollection = new TDEActionCollection(this);
KStdAction::quit(this, TQT_SLOT(slotClose()), m_actionCollection);
KStdAction::quit(this, TQ_SLOT(slotClose()), m_actionCollection);
setButtonTip( User2, i18n( "Goes to the previous element" ) );
setButtonTip( User1, i18n( "Goes to the next element" ) );

@ -69,15 +69,15 @@ ElementDataViewer::ElementDataViewer( TQWidget *parent, const char* name )
setButtonText( User1, i18n("&Plot") );
m_actionCollection = new TDEActionCollection(this);
KStdAction::quit(this, TQT_SLOT(slotClose()), m_actionCollection);
KStdAction::quit(this, TQ_SLOT(slotClose()), m_actionCollection);
connect ( m_pPlotSetupWidget->KCB_y, TQT_SIGNAL( activated(int) ),
this, TQT_SLOT( drawPlot()) );
connect ( m_pPlotSetupWidget->KCB_y, TQ_SIGNAL( activated(int) ),
this, TQ_SLOT( drawPlot()) );
connect ( m_pPlotSetupWidget->connectPoints, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( drawPlot()) );
connect ( m_pPlotSetupWidget->showNames, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( drawPlot()) );
connect ( m_pPlotSetupWidget->connectPoints, TQ_SIGNAL( toggled(bool) ),
this, TQ_SLOT( drawPlot()) );
connect ( m_pPlotSetupWidget->showNames, TQ_SIGNAL( toggled(bool) ),
this, TQ_SLOT( drawPlot()) );
// Draw the plot so that the user doesn't have to press the "Plot"
// button to seee anything.

@ -63,7 +63,7 @@ eqchemView::eqchemView(TQWidget *parent) : TQWidget(parent)
m_eqclear->setIconSet( TDEGlobal::instance()->iconLoader()->loadIconSet("locationbar_erase",
TDEIcon::NoGroup, 22 /*TDEIcon::SizeSmallMedium*/) );
connect(m_eqclear, TQT_SIGNAL(clicked()), m_eqedit, TQT_SLOT(clear()) );
connect(m_eqclear, TQ_SIGNAL(clicked()), m_eqedit, TQ_SLOT(clear()) );
}
eqchemView::~eqchemView()

@ -111,7 +111,7 @@ void EqResult::add(const TQString & question, const TQString & answer)
new QuestionItem( this, question, bgcolor );
new AnswerItem( this, question, answer, bgcolor );
TQTimer::singleShot( 100, this, TQT_SLOT( scrollToEnd() ) );
TQTimer::singleShot( 100, this, TQ_SLOT( scrollToEnd() ) );
}
void EqResult::scrollToEnd()

@ -74,8 +74,8 @@ Kalzium::Kalzium()
m_infoDialog = 0;
m_toolboxCurrent = 0;
connect( m_PerodicTableView, TQT_SIGNAL( ElementClicked( int ) ), this, TQT_SLOT( openInformationDialog( int ) ));
connect( m_PerodicTableView, TQT_SIGNAL( MouseOver( int ) ), this, TQT_SLOT( slotStatusbar( int ) ));
connect( m_PerodicTableView, TQ_SIGNAL( ElementClicked( int ) ), this, TQ_SLOT( openInformationDialog( int ) ));
connect( m_PerodicTableView, TQ_SIGNAL( MouseOver( int ) ), this, TQ_SLOT( slotStatusbar( int ) ));
// layouting
setCentralWidget( centralWidget );
@ -107,14 +107,14 @@ Kalzium::Kalzium()
void Kalzium::setupActions()
{
m_actionNoScheme = new TDEToggleAction(i18n("&No Color Scheme"), 0, this, TQT_SLOT(slotNoLook()), actionCollection(), "view_look_noscheme");
m_actionNoScheme = new TDEToggleAction(i18n("&No Color Scheme"), 0, this, TQ_SLOT(slotNoLook()), actionCollection(), "view_look_noscheme");
// the actions for the color schemes
m_actionGroups = new TDEToggleAction(i18n("Show &Groups"), 0, this, TQT_SLOT(slotLookGroups()), actionCollection(), "view_look_groups");
m_actionBlocks = new TDEToggleAction(i18n("Show &Blocks"), 0, this, TQT_SLOT(slotLookBlocks()), actionCollection(), "view_look_blocks");
m_actionAcid = new TDEToggleAction(i18n("Show &Acid Behavior"), 0, this, TQT_SLOT(slotLookAcidBehavior()), actionCollection(), "view_look_acid");
m_actionFamily = new TDEToggleAction(i18n("Show &Family"), 0, this, TQT_SLOT(slotLookFamily()), actionCollection(), "view_look_family");
m_actionCrystal = new TDEToggleAction(i18n("Show &Crystal Structures"), 0, this, TQT_SLOT(slotLookCrystal()), actionCollection(), "view_look_crystal");
m_actionGroups = new TDEToggleAction(i18n("Show &Groups"), 0, this, TQ_SLOT(slotLookGroups()), actionCollection(), "view_look_groups");
m_actionBlocks = new TDEToggleAction(i18n("Show &Blocks"), 0, this, TQ_SLOT(slotLookBlocks()), actionCollection(), "view_look_blocks");
m_actionAcid = new TDEToggleAction(i18n("Show &Acid Behavior"), 0, this, TQ_SLOT(slotLookAcidBehavior()), actionCollection(), "view_look_acid");
m_actionFamily = new TDEToggleAction(i18n("Show &Family"), 0, this, TQ_SLOT(slotLookFamily()), actionCollection(), "view_look_family");
m_actionCrystal = new TDEToggleAction(i18n("Show &Crystal Structures"), 0, this, TQ_SLOT(slotLookCrystal()), actionCollection(), "view_look_crystal");
//the actions for switching PerodicTableView
TQStringList gradientlist;
@ -129,7 +129,7 @@ void Kalzium::setupActions()
gradientlist.append(i18n("Electron Affinity"));
gradient_action = new TDESelectAction(i18n("&Gradient"), 0, this, 0, actionCollection(), "view_look_gradmenu");
gradient_action->setItems(gradientlist);
connect (gradient_action, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSwitchtoGradient(int)));
connect (gradient_action, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotSwitchtoGradient(int)));
// the actions for switching PerodicTableView
TQStringList numlist;
@ -140,25 +140,25 @@ void Kalzium::setupActions()
numeration_action = new TDESelectAction (i18n("&Numeration"), 0, this, 0, actionCollection(), "view_numerationtype");
numeration_action->setItems(numlist);
numeration_action->setCurrentItem(Prefs::numeration());
connect (numeration_action, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSwitchtoNumeration(int)));
connect (numeration_action, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotSwitchtoNumeration(int)));
m_SidebarAction = new TDEAction(i18n("Show &Sidebar"), "sidebar", 0, this, TQT_SLOT(slotShowHideSidebar()), actionCollection(), "view_sidebar");
m_SidebarAction = new TDEAction(i18n("Show &Sidebar"), "sidebar", 0, this, TQ_SLOT(slotShowHideSidebar()), actionCollection(), "view_sidebar");
#ifdef HAVE_FACILE
m_EQSolverAction = new TDEAction(i18n("&Equation Solver..."), "eqchem", 0, this, TQT_SLOT(slotShowEQSolver()), actionCollection(), "tools_eqsolver");
m_EQSolverAction = new TDEAction(i18n("&Equation Solver..."), "eqchem", 0, this, TQ_SLOT(slotShowEQSolver()), actionCollection(), "tools_eqsolver");
#endif
// tools actions
m_pPlotAction = new TDEAction(i18n("&Plot Data..."), "plot", 0, this, TQT_SLOT(slotPlotData()), actionCollection(), "tools_plotdata");
m_pGlossaryAction = new TDEAction(i18n("&Glossary..."), "glossary", 0, this, TQT_SLOT(slotGlossary()), actionCollection(), "tools_glossary");
m_pPlotAction = new TDEAction(i18n("&Plot Data..."), "plot", 0, this, TQ_SLOT(slotPlotData()), actionCollection(), "tools_plotdata");
m_pGlossaryAction = new TDEAction(i18n("&Glossary..."), "glossary", 0, this, TQ_SLOT(slotGlossary()), actionCollection(), "tools_glossary");
// other period view options
m_pLegendAction = new TDEAction(i18n("Show &Legend"), "legend", 0, this, TQT_SLOT(slotShowLegend()), actionCollection(), "view_legend");
m_pTooltipAction = new TDEAction(i18n("Show &Tooltip"), "tooltip", 0, this, TQT_SLOT(slotEnableTooltips()), actionCollection(), "view_tooltip");
m_pLegendAction = new TDEAction(i18n("Show &Legend"), "legend", 0, this, TQ_SLOT(slotShowLegend()), actionCollection(), "view_legend");
m_pTooltipAction = new TDEAction(i18n("Show &Tooltip"), "tooltip", 0, this, TQ_SLOT(slotEnableTooltips()), actionCollection(), "view_tooltip");
// the standard actions
KStdAction::preferences(this, TQT_SLOT(showSettingsDialog()), actionCollection());
KStdAction::quit(kapp, TQT_SLOT (closeAllWindows()),actionCollection() );
KStdAction::preferences(this, TQ_SLOT(showSettingsDialog()), actionCollection());
KStdAction::quit(kapp, TQ_SLOT (closeAllWindows()),actionCollection() );
slotShowScheme( Prefs::colorschemebox() );
slotSwitchtoNumeration( Prefs::numeration() );
@ -213,7 +213,7 @@ void Kalzium::setupSidebars()
lay->activate();
m_detailWidget = new DetailedGraphicalOverview( fake, "DetailedGraphicalOverview" );
m_detailWidget->setMinimumSize( 200, m_detailWidget->minimumSize().height() );
connect( m_PerodicTableView, TQT_SIGNAL( MouseOver( int ) ), this, TQT_SLOT( slotSelectedNumber( int ) ));
connect( m_PerodicTableView, TQ_SIGNAL( MouseOver( int ) ), this, TQ_SLOT( slotSelectedNumber( int ) ));
lay->addWidget( m_detailWidget );
lay->addItem( new TQSpacerItem( 10, 10, TQSizePolicy::Fixed, TQSizePolicy::MinimumExpanding ) );
m_toolbox->addItem( fake, SmallIcon( "overview" ), i18n( "Overview" ) );
@ -222,26 +222,26 @@ void Kalzium::setupSidebars()
m_toolbox->addItem( m_calcWidget, SmallIcon( "calculate" ), i18n( "Calculate" ) );
m_timeWidget = new TimeWidgetIMPL( this, "TimeWidget" );
connect( m_timeWidget->time_slider, TQT_SIGNAL( valueChanged( int ) ),
m_PerodicTableView, TQT_SLOT( setDate( int ) ) );
connect( m_timeWidget->time_slider, TQT_SIGNAL( valueChanged( int ) ),
m_timeWidget, TQT_SLOT( slotChanged( int ) ) );
connect( m_timeWidget->Number1, TQT_SIGNAL( valueChanged( int ) ),
m_timeWidget, TQT_SLOT( slotChanged( int ) ) );
connect( m_timeWidget->time_slider, TQ_SIGNAL( valueChanged( int ) ),
m_PerodicTableView, TQ_SLOT( setDate( int ) ) );
connect( m_timeWidget->time_slider, TQ_SIGNAL( valueChanged( int ) ),
m_timeWidget, TQ_SLOT( slotChanged( int ) ) );
connect( m_timeWidget->Number1, TQ_SIGNAL( valueChanged( int ) ),
m_timeWidget, TQ_SLOT( slotChanged( int ) ) );
m_toolbox->addItem( m_timeWidget, SmallIcon( "timeline" ), i18n( "Timeline" ) );
m_somWidget = new SOMWidgetIMPL( this, "somWidget" );
connect( m_somWidget->temp_slider, TQT_SIGNAL( valueChanged( int ) ),
m_PerodicTableView, TQT_SLOT( setTemperature( int ) ) );
connect( m_somWidget->temp_slider, TQ_SIGNAL( valueChanged( int ) ),
m_PerodicTableView, TQ_SLOT( setTemperature( int ) ) );
m_toolbox->addItem( m_somWidget, SmallIcon( "statematter" ), i18n( "State of Matter" ) );
connect( m_toolbox, TQT_SIGNAL( currentChanged( int ) ), this, TQT_SLOT( slotToolboxCurrentChanged( int ) ) );
connect( m_toolbox, TQ_SIGNAL( currentChanged( int ) ), this, TQ_SLOT( slotToolboxCurrentChanged( int ) ) );
moveDockWindow( m_dockWin, DockLeft );
setDockEnabled( /*m_dockWin, */DockTop, false );
setDockEnabled( /*m_dockWin, */DockBottom, false );
m_dockWin->hide();
connect( m_dockWin, TQT_SIGNAL(visibilityChanged(bool)), this, TQT_SLOT(slotSidebarVisibilityChanged(bool)));
connect( m_dockWin, TQ_SIGNAL(visibilityChanged(bool)), this, TQ_SLOT(slotSidebarVisibilityChanged(bool)));
}
@ -263,7 +263,7 @@ void Kalzium::slotShowEQSolver()
eqsolver->setMinimumSize( 600,400 );
vbox->addWidget( eqsolver );
connect(dlg, TQT_SIGNAL(applyClicked()), eqsolver, TQT_SLOT(compute()));
connect(dlg, TQ_SIGNAL(applyClicked()), eqsolver, TQ_SLOT(compute()));
dlg->show();
#endif
}
@ -398,8 +398,8 @@ void Kalzium::showSettingsDialog()
//TDEConfigDialog didn't find an instance of this dialog, so lets create it :
TDEConfigDialog *dialog = new TDEConfigDialog(this,"settings", Prefs::self());
connect( dialog, TQT_SIGNAL( settingsChanged() ), this , TQT_SLOT( slotUpdateSettings() ) );
connect( dialog, TQT_SIGNAL( settingsChanged() ), m_somWidget, TQT_SLOT( reloadUnits() ) );
connect( dialog, TQ_SIGNAL( settingsChanged() ), this , TQ_SLOT( slotUpdateSettings() ) );
connect( dialog, TQ_SIGNAL( settingsChanged() ), m_somWidget, TQ_SLOT( reloadUnits() ) );
dialog->addPage( new setColors( 0, "colors_page"), i18n("Colors"), "colorize");
dialog->addPage( new setupUnits( 0, "units_page"), i18n("Units"), "gear");
dialog->addPage( new setupMisc( 0, "miscpage" ), i18n( "Miscellaneous" ), "misc" );
@ -440,10 +440,10 @@ void Kalzium::openInformationDialog( int number )
this, "detailedDlg" );
// Remove the selection when this dialog finishes or hides.
connect(m_infoDialog, TQT_SIGNAL(hidden()),
m_PerodicTableView, TQT_SLOT(unSelect()));
connect(m_infoDialog, TQT_SIGNAL(elementChanged(int)),
m_PerodicTableView, TQT_SLOT(selectElement(int)));
connect(m_infoDialog, TQ_SIGNAL(hidden()),
m_PerodicTableView, TQ_SLOT(unSelect()));
connect(m_infoDialog, TQ_SIGNAL(elementChanged(int)),
m_PerodicTableView, TQ_SLOT(selectElement(int)));
}
m_infoDialog->show();
}

@ -48,7 +48,7 @@ KalziumTip::KalziumTip( TQWidget * parent, const char * name, WFlags f ) : TQWid
m_noElemIcon = TDEGlobal::iconLoader()->loadIcon( "orbits", TDEIcon::NoGroup, 64 );
setMouseTracking(true); // receice mouse move events
connect(&m_frameTimer, TQT_SIGNAL(timeout()), TQT_SLOT(internalUpdate()));
connect(&m_frameTimer, TQ_SIGNAL(timeout()), TQ_SLOT(internalUpdate()));
}
void KalziumTip::showTip( TQPoint mouse, Element* element, int visibleWidth, int visibleHeight )

@ -51,17 +51,17 @@ PerodicTableView::PerodicTableView(TQWidget *parent, const char *name)
unSelect();
#if 0
connect( this, TQT_SIGNAL( tableClicked( TQPoint ) ),
this, TQT_SLOT( selectPoint( TQPoint ) ) );
connect( this, TQ_SIGNAL( tableClicked( TQPoint ) ),
this, TQ_SLOT( selectPoint( TQPoint ) ) );
#endif
connect( this, TQT_SIGNAL( ToolTip( int ) ),
this, TQT_SLOT( slotToolTip( int ) ) );
connect( this, TQ_SIGNAL( ToolTip( int ) ),
this, TQ_SLOT( slotToolTip( int ) ) );
connect( &HoverTimer, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( slotTransientLabel() ) );
connect( &HoverTimer, TQ_SIGNAL( timeout() ),
this, TQ_SLOT( slotTransientLabel() ) );
connect( &MouseoverTimer, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( slotMouseover() ) );
connect( &MouseoverTimer, TQ_SIGNAL( timeout() ),
this, TQ_SLOT( slotMouseover() ) );
setMouseTracking( true );

@ -45,12 +45,12 @@ SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *parent, const char* name )
m_htmlEnd = "</qt>";
m_prevUnit = Prefs::temperature();
connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( spinValueChanged( double ) ) );
connect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( sliderValueChanged( int ) ) );
connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( setNewTemp( double ) ) );
connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( spinValueChanged( double ) ) );
connect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
this, TQ_SLOT( sliderValueChanged( int ) ) );
connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( setNewTemp( double ) ) );
reloadUnits();
}
@ -71,40 +71,40 @@ kdDebug() << "min: " << Number1->minValue() << " - max: " << Number1->maxValue()
void SOMWidgetIMPL::sliderValueChanged( int temp )
{
// TODO check if in TQt4 the RangeControl emits the signal again
disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( spinValueChanged( double ) ) );
disconnect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( sliderValueChanged( int ) ) );
disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( setNewTemp( double ) ) );
disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( spinValueChanged( double ) ) );
disconnect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
this, TQ_SLOT( sliderValueChanged( int ) ) );
disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( setNewTemp( double ) ) );
double newvalue = TempUnit::convert( (double)temp, (int)TempUnit::Kelvin, Prefs::temperature() );
Number1->setValue( newvalue );
setNewTemp( newvalue );
connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( spinValueChanged( double ) ) );
connect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( sliderValueChanged( int ) ) );
connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( setNewTemp( double ) ) );
connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( spinValueChanged( double ) ) );
connect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
this, TQ_SLOT( sliderValueChanged( int ) ) );
connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( setNewTemp( double ) ) );
}
void SOMWidgetIMPL::spinValueChanged( double temp )
{
disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( spinValueChanged( double ) ) );
disconnect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( sliderValueChanged( int ) ) );
disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( setNewTemp( double ) ) );
disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( spinValueChanged( double ) ) );
disconnect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
this, TQ_SLOT( sliderValueChanged( int ) ) );
disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( setNewTemp( double ) ) );
int newvalue = (int)TempUnit::convert( temp, Prefs::temperature(), (int)TempUnit::Kelvin );
temp_slider->setValue( newvalue );
setNewTemp( temp );
connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( spinValueChanged( double ) ) );
connect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( sliderValueChanged( int ) ) );
connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
this, TQT_SLOT( setNewTemp( double ) ) );
connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( spinValueChanged( double ) ) );
connect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
this, TQ_SLOT( sliderValueChanged( int ) ) );
connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
this, TQ_SLOT( setNewTemp( double ) ) );
}
void SOMWidgetIMPL::setNewTemp( double newtemp )

@ -119,9 +119,9 @@ Kanagram::Kanagram() : TQWidget(0, 0, WStaticContents | WNoAutoErase), m_overNex
m_inputBox->setGeometry(TQRect(52, 427, 273, 29));
m_inputBox->setFrame(false);
connect(m_inputBox, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(checkWord()));
connect(m_hintTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(hideHint()));
connect(m_inputBox, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(update()));
connect(m_inputBox, TQ_SIGNAL(returnPressed()), this, TQ_SLOT(checkWord()));
connect(m_hintTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(hideHint()));
connect(m_inputBox, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(update()));
TQFont f = TQFont();
f.setPointSize(17);
@ -465,7 +465,7 @@ void Kanagram::mousePressEvent(TQMouseEvent *e)
{
if(m_useSounds) play("right.ogg");
m_inputBox->setPaletteBackgroundColor(TQColor(0, 255, 0));
TQTimer::singleShot(1000, this, TQT_SLOT(resetInputBox()));
TQTimer::singleShot(1000, this, TQ_SLOT(resetInputBox()));
m_inputBox->clear();
hideHint();
m_game->nextAnagram();
@ -475,7 +475,7 @@ void Kanagram::mousePressEvent(TQMouseEvent *e)
{
if(m_useSounds) play("wrong.ogg");
m_inputBox->setPaletteBackgroundColor(TQColor(255, 0, 0));
TQTimer::singleShot(1000, this, TQT_SLOT(resetInputBox()));
TQTimer::singleShot(1000, this, TQ_SLOT(resetInputBox()));
m_inputBox->clear();
update();
}
@ -744,8 +744,8 @@ void Kanagram::showSettings()
m_vocabSettings = new VocabSettings( configDialog );
configDialog->addPage( m_vocabSettings, i18n("Vocabularies"), "edit" );
configDialog->addPage( new NewStuff( configDialog ), i18n("New Stuff"), "knewstuff" );
connect(configDialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(loadSettings()));
connect(configDialog, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(refreshVocabularies()));
connect(configDialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(loadSettings()));
connect(configDialog, TQ_SIGNAL(applyClicked()), this, TQ_SLOT(refreshVocabularies()));
configDialog->exec();
delete configDialog;
}

@ -99,7 +99,7 @@ bool KEduVocDocument::open(const KURL& url, bool /*append*/)
if (!url.isEmpty())
doc_url = url;
// TODO EPT connect( this, TQT_SIGNAL(progressChanged(KEduVocDocument*,int)), parent, TQT_SLOT(slotProgress(KEduVocDocument*,int)) );
// TODO EPT connect( this, TQ_SIGNAL(progressChanged(KEduVocDocument*,int)), parent, TQ_SLOT(slotProgress(KEduVocDocument*,int)) );
TQString tmpfile;
if (TDEIO::NetAccess::download( url, tmpfile, 0 ))
@ -182,7 +182,7 @@ bool KEduVocDocument::open(const KURL& url, bool /*append*/)
bool KEduVocDocument::saveAs(TQObject * /*parent*/, const KURL & url, FileType ft, const TQString & generator)
{
// connect( this, TQT_SIGNAL(progressChanged(KEduVocDocument*,int)), parent, TQT_SLOT(slotProgress(KEduVocDocument*,int)) );
// connect( this, TQ_SIGNAL(progressChanged(KEduVocDocument*,int)), parent, TQ_SLOT(slotProgress(KEduVocDocument*,int)) );
KURL tmp (url);

@ -35,7 +35,7 @@ int main(int argc, char *argv[])
about.addCredit("Artemiy Pavlov", I18N_NOOP("Sound effects"), 0, "http://artemiolabs.com");
TDECmdLineArgs::init(argc, argv, &about);
TDEApplication app;
app.connect(&app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit()));
app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit()));
KanagramSettings::setJustGotFont(false);
TQFont f("squeaky chalk sound");

@ -39,8 +39,8 @@ MainSettings::MainSettings(TQWidget *parent) : MainSettingsWidget(parent)
{
m_parent = (TDEConfigDialog*)parent;
connect(parent, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(slotChangeTranslation()));
connect(cboxTranslation, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateParent()));
connect(parent, TQ_SIGNAL(applyClicked()), this, TQ_SLOT(slotChangeTranslation()));
connect(cboxTranslation, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotUpdateParent()));
setupTranslations();
@ -73,7 +73,7 @@ MainSettings::MainSettings(TQWidget *parent) : MainSettingsWidget(parent)
if (!TQFontInfo(f).exactMatch())
{
kcfg_useStandardFonts->setEnabled(false);
connect(getFontsButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(getAndInstallFont()));
connect(getFontsButton, TQ_SIGNAL(pressed()), this, TQ_SLOT(getAndInstallFont()));
}
else
{

@ -13,7 +13,7 @@
NewStuff::NewStuff(TQWidget *parent) : NewStuffWidget(parent)
{
connect(btnGetNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotGetNewVocabs()));
connect(btnGetNew, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotGetNewVocabs()));
}
NewStuff::~NewStuff()

@ -58,20 +58,20 @@ VocabEdit::VocabEdit(TQWidget *parent, TQString fileName) : VocabEditWidget(pare
txtDescription->setText(doc->getDocRemark());
}
connect(btnSave, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSave()));
connect(btnNewWord, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewWord()));
connect(btnRemoveWord, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveWord()));
connect(btnClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
connect(btnSave, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSave()));
connect(btnNewWord, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewWord()));
connect(btnRemoveWord, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveWord()));
connect(btnClose, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClose()));
connect(txtWord, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotWordTextChanged(const TQString &)));
connect(txtHint, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotHintTextChanged(const TQString &)));
connect(txtWord, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotWordTextChanged(const TQString &)));
connect(txtHint, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotHintTextChanged(const TQString &)));
//Connect the name and description boxes to a general textChanged slot, so that we can keep track of
//whether they've been changed or not
connect(txtVocabName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotTextChanged(const TQString &)));
connect(txtDescription, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotTextChanged(const TQString &)));
connect(txtVocabName, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotTextChanged(const TQString &)));
connect(txtDescription, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotTextChanged(const TQString &)));
connect(lboxWords, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()));
connect(lboxWords, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotSelectionChanged()));
//Has anything in the dialog changed?
m_textChanged = false;
@ -140,15 +140,15 @@ void VocabEdit::slotNewWord()
void VocabEdit::slotSelectionChanged()
{
//A little hack to make things work right
disconnect(txtWord, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotWordTextChanged(const TQString &)));
disconnect(txtHint, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotHintTextChanged(const TQString &)));
disconnect(txtWord, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotWordTextChanged(const TQString &)));
disconnect(txtHint, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotHintTextChanged(const TQString &)));
if(lboxWords->currentItem() >= 0)
{
txtWord->setText(m_vocabList[lboxWords->currentItem()].getOriginal());
txtHint->setText(m_vocabList[lboxWords->currentItem()].getRemark(0));
}
connect(txtWord, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotWordTextChanged(const TQString &)));
connect(txtHint, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotHintTextChanged(const TQString &)));
connect(txtWord, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotWordTextChanged(const TQString &)));
connect(txtHint, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotHintTextChanged(const TQString &)));
}
void VocabEdit::slotWordTextChanged(const TQString &changes)

@ -18,10 +18,10 @@
VocabSettings::VocabSettings(TQWidget *parent) : VocabSettingsWidget(parent)
{
connect(btnCreateNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateNew()));
connect(btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEdit()));
connect(btnDelete, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelete()));
connect(lviewVocab, TQT_SIGNAL(selectionChanged(TQListViewItem *)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem *)));
connect(btnCreateNew, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCreateNew()));
connect(btnEdit, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEdit()));
connect(btnDelete, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDelete()));
connect(lviewVocab, TQ_SIGNAL(selectionChanged(TQListViewItem *)), this, TQ_SLOT(slotSelectionChanged(TQListViewItem *)));
refreshView();
}

@ -86,7 +86,7 @@ ExerciseCompare::ExerciseCompare(TQWidget * parent, const char * name):
m_signButtonState = lessThen;
taskLineHBoxLayout->addWidget(m_signButton);
TQObject::connect(m_signButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSignButtonClicked()));
TQObject::connect(m_signButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSignButtonClicked()));
TQToolTip::add(m_signButton, i18n("Click on this button to change the comparison sign."));
// spacer
@ -124,7 +124,7 @@ ExerciseCompare::ExerciseCompare(TQWidget * parent, const char * name):
m_checkButton->setDefault(true); // is the default button of the dialog
TQToolTip::add(m_checkButton, i18n("Click on this button to check your result."));
lowerHBox->addWidget(m_checkButton, 1, TQt::AlignRight);
TQObject::connect(m_checkButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCheckButtonClicked()));
TQObject::connect(m_checkButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCheckButtonClicked()));
// that the user can start typing without moving the focus
m_signButton->setFocus();

@ -158,7 +158,7 @@ ExerciseConvert::ExerciseConvert(TQWidget * parent, const char * name):
m_checkButton->setDefault(true); // is the default button of the dialog
TQToolTip::add(m_checkButton, i18n("Click on this button to check your result. The button will not work if you have not entered a result yet."));
lowerHBox->addWidget(m_checkButton, 1, TQt::AlignRight);
TQObject::connect(m_checkButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCheckButtonClicked()));
TQObject::connect(m_checkButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCheckButtonClicked()));
// that the user can start typing without moving the focus
numer_edit->setFocus();

@ -126,14 +126,14 @@ ExerciseFactorize::ExerciseFactorize(TQWidget * parent, const char * name):
m_factor13Button->setText( i18n( "13" ) );
m_factor17Button->setText( i18n( "17" ) );
m_factor19Button->setText( i18n( "19" ) );
TQObject::connect(m_factor2Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor2ButtonClicked()));
TQObject::connect(m_factor3Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor3ButtonClicked()));
TQObject::connect(m_factor5Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor5ButtonClicked()));
TQObject::connect(m_factor7Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor7ButtonClicked()));
TQObject::connect(m_factor11Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor11ButtonClicked()));
TQObject::connect(m_factor13Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor13ButtonClicked()));
TQObject::connect(m_factor17Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor17ButtonClicked()));
TQObject::connect(m_factor19Button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFactor19ButtonClicked()));
TQObject::connect(m_factor2Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor2ButtonClicked()));
TQObject::connect(m_factor3Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor3ButtonClicked()));
TQObject::connect(m_factor5Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor5ButtonClicked()));
TQObject::connect(m_factor7Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor7ButtonClicked()));
TQObject::connect(m_factor11Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor11ButtonClicked()));
TQObject::connect(m_factor13Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor13ButtonClicked()));
TQObject::connect(m_factor17Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor17ButtonClicked()));
TQObject::connect(m_factor19Button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFactor19ButtonClicked()));
// add tooltips to the factor buttons
TQToolTip::add(m_factor2Button, i18n("Add prime factor 2."));
@ -148,13 +148,13 @@ ExerciseFactorize::ExerciseFactorize(TQWidget * parent, const char * name):
// the remove last factor button
m_removeLastFactorButton->setText( i18n( "&Remove Last Factor" ) );
m_removeLastFactorButton->setEnabled(false);
TQObject::connect(m_removeLastFactorButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveLastFactorButtonClicked()));
TQObject::connect(m_removeLastFactorButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveLastFactorButtonClicked()));
TQToolTip::add(m_removeLastFactorButton, i18n("Removes the last entered prime factor."));
// the check task button
m_checkButton->setText( i18n( "&Check Task" ) );
TQToolTip::add(m_checkButton, i18n("Click on this button to check your result. The button will not work if you have not entered a result yet."));
TQObject::connect(m_checkButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCheckButtonClicked()));
TQObject::connect(m_checkButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCheckButtonClicked()));
m_checkButton->setDefault(true); // is the default button of the dialog
// that the user can start choosing the prime factors

@ -94,18 +94,18 @@ MainQtWidget::MainQtWidget()
splitter->setResizeMode(m_statview, TQSplitter::FollowSizeHint);
// we must change the status of the menubar before another page is shown
TQObject::connect(m_exercises, TQT_SIGNAL(aboutToShowPage(TQWidget *)), this, TQT_SLOT(slotAboutToShowPage(TQWidget *)));
TQObject::connect(m_exercises, TQ_SIGNAL(aboutToShowPage(TQWidget *)), this, TQ_SLOT(slotAboutToShowPage(TQWidget *)));
// connect signals of the exercises and StatisticView, so that StatisticView
// gets informed about how the user solved a given task (wrong or correct)
TQObject::connect(m_taskview, TQT_SIGNAL(signalTaskSolvedCorrect()), m_statview, TQT_SLOT(addCorrect()));
TQObject::connect(m_taskview, TQT_SIGNAL(signalTaskSolvedWrong()), m_statview, TQT_SLOT(addWrong()));
TQObject::connect(m_exerciseCompare, TQT_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQT_SLOT(addCorrect()));
TQObject::connect(m_exerciseCompare, TQT_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQT_SLOT(addWrong()));
TQObject::connect(m_exerciseConvert, TQT_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQT_SLOT(addCorrect()));
TQObject::connect(m_exerciseConvert, TQT_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQT_SLOT(addWrong()));
TQObject::connect(m_exerciseFactorize, TQT_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQT_SLOT(addCorrect()));
TQObject::connect(m_exerciseFactorize, TQT_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQT_SLOT(addWrong()));
TQObject::connect(m_taskview, TQ_SIGNAL(signalTaskSolvedCorrect()), m_statview, TQ_SLOT(addCorrect()));
TQObject::connect(m_taskview, TQ_SIGNAL(signalTaskSolvedWrong()), m_statview, TQ_SLOT(addWrong()));
TQObject::connect(m_exerciseCompare, TQ_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQ_SLOT(addCorrect()));
TQObject::connect(m_exerciseCompare, TQ_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQ_SLOT(addWrong()));
TQObject::connect(m_exerciseConvert, TQ_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQ_SLOT(addCorrect()));
TQObject::connect(m_exerciseConvert, TQ_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQ_SLOT(addWrong()));
TQObject::connect(m_exerciseFactorize, TQ_SIGNAL(signalExerciseSolvedCorrect()), m_statview, TQ_SLOT(addCorrect()));
TQObject::connect(m_exerciseFactorize, TQ_SIGNAL(signalExerciseSolvedWrong()), m_statview, TQ_SLOT(addWrong()));
#if (TDE_VERSION_MINOR>=3) && (TDE_VERSION_MAJOR>=3)
#else
@ -155,19 +155,19 @@ void MainQtWidget::setupActions()
{
// new task action
m_NewTaskAction = new TDEAction(i18n("&New"), "document-new", TDEStdAccel::shortcut(TDEStdAccel::New),
this, TQT_SLOT(NewTask()),
this, TQ_SLOT(NewTask()),
actionCollection(), "NewTask");
// quit action
KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
//
KStdAction::preferences(this, TQT_SLOT( slotPrefs() ), actionCollection());
KStdAction::preferences(this, TQ_SLOT( slotPrefs() ), actionCollection());
// a label just describing the Number of terms ComboBox
m_NrOfTermsLabel = new TQLabel(i18n("Terms:"), 0, "tde toolbar widget");
m_NrOfTermsLabelAction = new KWidgetAction(m_NrOfTermsLabel, i18n("Terms:"), ALT+Key_E,
this, TQT_SLOT(NrOfTermsBoxSlot()),
this, TQ_SLOT(NrOfTermsBoxSlot()),
actionCollection(), "NrOfTermsLabelAction");
// the ComboBox holding possible values for term number
@ -179,15 +179,15 @@ void MainQtWidget::setupActions()
m_NrOfTermsBox->setCurrentItem(m_nrRatios - 2);
TQToolTip::add( m_NrOfTermsBox, i18n( "The number of terms you want" ) );
TQWhatsThis::add( m_NrOfTermsBox, i18n( "Choose the number of terms (2, 3, 4 or 5) you want for calculating fractions." ) );
m_NrOfTermsBoxAction = new KWidgetAction(m_NrOfTermsBox, i18n("Number of Terms"), ALT+Key_E, this, TQT_SLOT(NrOfTermsBoxSlot()), actionCollection(), "NrOfTermsBoxAction");
m_NrOfTermsBoxAction = new KWidgetAction(m_NrOfTermsBox, i18n("Number of Terms"), ALT+Key_E, this, TQ_SLOT(NrOfTermsBoxSlot()), actionCollection(), "NrOfTermsBoxAction");
// now connect the ComboBox's signal textChanged() to the slot function
TQObject::connect(m_NrOfTermsBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(NrOfTermsBoxSlot()));
TQObject::connect(m_NrOfTermsBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(NrOfTermsBoxSlot()));
// a label just describing the max. main denominator ComboBox
m_MaxMainDenominatorLabel = new TQLabel(i18n("Max. main denominator:"), 0, "tde toolbar widget");
m_MaxMainDenominatorLabelAction = new KWidgetAction(m_MaxMainDenominatorLabel, i18n("Max. main denominator:"), ALT+Key_D,
this, TQT_SLOT(MaxMainDenominatorBoxSlot()),
this, TQ_SLOT(MaxMainDenominatorBoxSlot()),
actionCollection(), "MaxMainDenominatorLabelAction");
// the ComboBox holding possible values for the max. main denominator
@ -209,16 +209,16 @@ void MainQtWidget::setupActions()
case 50 : m_MaxMainDenominatorBox->setCurrentItem(3);
break;
}
m_MaxMainDenominatorBoxAction = new KWidgetAction(m_MaxMainDenominatorBox, i18n("Maximal Main Denominator"), ALT+Key_D, this, TQT_SLOT(MaxMainDenominatorBoxSlot()), actionCollection(), "MaxMainDenominatorBoxAction");
m_MaxMainDenominatorBoxAction = new KWidgetAction(m_MaxMainDenominatorBox, i18n("Maximal Main Denominator"), ALT+Key_D, this, TQ_SLOT(MaxMainDenominatorBoxSlot()), actionCollection(), "MaxMainDenominatorBoxAction");
// now connect the ComboBox's signal textChanged() to the slot function
TQObject::connect(m_MaxMainDenominatorBox, TQT_SIGNAL(activated(int)),
this, TQT_SLOT(MaxMainDenominatorBoxSlot()));
TQObject::connect(m_MaxMainDenominatorBox, TQ_SIGNAL(activated(int)),
this, TQ_SLOT(MaxMainDenominatorBoxSlot()));
// a label just describing the operation ComboBox
m_OperationLabel = new TQLabel(i18n("Operations:"), 0, "tde toolbar widget");
m_OperationLabelAction = new KWidgetAction(m_OperationLabel, i18n("Operations:"), ALT+Key_O,
this, TQT_SLOT(OperationBoxSlot()),
this, TQ_SLOT(OperationBoxSlot()),
actionCollection(), "OperationLabelAction");
// the ComboBox holding possible combinations for operations
@ -236,10 +236,10 @@ void MainQtWidget::setupActions()
}
TQToolTip::add( m_OperationBox, i18n( "The operations you want" ) );
TQWhatsThis::add( m_OperationBox, i18n( "Choose the type of operations you want for calculating fractions: Addition/Substraction, Multiplication/Division or All Operations Mixed. If you choose All Operations Mixed, the program will randomly choose addition, substraction, multiplication and/or division." ) );
m_OperationBoxAction = new KWidgetAction(m_OperationBox, i18n("Operations:"), ALT+Key_O, this, TQT_SLOT(OperationBoxSlot()), actionCollection(), "OperationBoxAction");
m_OperationBoxAction = new KWidgetAction(m_OperationBox, i18n("Operations:"), ALT+Key_O, this, TQ_SLOT(OperationBoxSlot()), actionCollection(), "OperationBoxAction");
// now connect the ComboBox's signal textChanged() to the slot function
TQObject::connect(m_OperationBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(OperationBoxSlot()));
TQObject::connect(m_OperationBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(OperationBoxSlot()));
#if (TDE_VERSION_MINOR>=3) && (TDE_VERSION_MAJOR>=3)
if (!initialGeometrySet())
@ -428,12 +428,12 @@ void MainQtWidget::slotPrefs()
// User edited the configuration - update your local copies of the
// configuration data
connect(configDialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotApplySettings()) );
connect(configDialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(slotApplySettings()) );
configDialog->show();
/*
SettingsDialog * dlg = new SettingsDialog(this);
connect(dlg, TQT_SIGNAL(configChanged()), this, TQT_SLOT(slotApplySettings()));
connect(dlg, TQ_SIGNAL(configChanged()), this, TQ_SLOT(slotApplySettings()));
dlg->exec();

@ -117,7 +117,7 @@ StatisticsView::StatisticsView(TQWidget * parent, const char * name):
/* the Reset button */
buttonLayout = new TQHBoxLayout(layout1);
resetBtn = new TQPushButton(i18n("&Reset"), this);
TQObject::connect(resetBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(resetStatistics()));
TQObject::connect(resetBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(resetStatistics()));
buttonLayout->addWidget(resetBtn);
TQToolTip::add(resetBtn, i18n("Press the button to reset the statistics."));
TQSpacerItem* spacer = new TQSpacerItem(0,0);

@ -153,7 +153,7 @@ TaskView::TaskView(TQWidget * parent, const char * name, bool padd_sub,
m_checkButton->setDefault(true); // is the default button of the dialog
TQToolTip::add(m_checkButton, i18n("Click on this button to check your result. The button will not work if you have not entered a result yet."));
lowerHBox->addWidget(m_checkButton, 1, TQt::AlignRight);
TQObject::connect(m_checkButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCheckButtonClicked()));
TQObject::connect(m_checkButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCheckButtonClicked()));
// that the user can start typing without moving the focus
numer_edit->setFocus();

@ -63,12 +63,12 @@ Keduca::~Keduca()
void Keduca::setupActions()
{
KStdAction::open( this, TQT_SLOT( slotFileOpen() ), actionCollection() );
(void)new TDEAction( i18n( "Open &Gallery..." ), 0, 0, this, TQT_SLOT( slotGallery() ),
KStdAction::open( this, TQ_SLOT( slotFileOpen() ), actionCollection() );
(void)new TDEAction( i18n( "Open &Gallery..." ), 0, 0, this, TQ_SLOT( slotGallery() ),
actionCollection(), "open_gallery" );
_recentFiles = KStdAction::openRecent(this, TQT_SLOT ( slotFileOpenURL(const KURL &) ),
_recentFiles = KStdAction::openRecent(this, TQ_SLOT ( slotFileOpenURL(const KURL &) ),
actionCollection());
KStdAction::quit(kapp, TQT_SLOT( quit() ), actionCollection());
KStdAction::quit(kapp, TQ_SLOT( quit() ), actionCollection());
}
void Keduca::slotFileOpen()

@ -71,7 +71,7 @@ bool KEducaPart::openFile()
void KEducaPart::setupActions()
{
KStdAction::preferences( this, TQT_SLOT( slotConfigure() ), actionCollection(), "configure" );
KStdAction::preferences( this, TQ_SLOT( slotConfigure() ), actionCollection(), "configure" );
}
void KEducaPart::slotConfigure()
@ -83,7 +83,7 @@ void KEducaPart::slotConfigure()
ConfigDialogBase *confDlg = new ConfigDialogBase( 0, "ConfigDialogBase" );
dialog->addPage( confDlg, i18n("General"), "keduca" );
connect( dialog, TQT_SIGNAL( settingsChanged() ), TQT_SLOT( updateConfiguration() ) );
connect( dialog, TQ_SIGNAL( settingsChanged() ), TQ_SLOT( updateConfiguration() ) );
dialog->show();
}

@ -69,7 +69,7 @@ void KEducaView::init()
_viewInfo = new TQTextEdit( _infoWidget );
_viewInfo->setReadOnly( true );
_buttonStartTest = new KPushButton( i18n( "&Start Test" ), _infoWidget );
connect( _buttonStartTest, TQT_SIGNAL( clicked() ), TQT_SLOT( slotButtonNext() ) );
connect( _buttonStartTest, TQ_SIGNAL( clicked() ), TQ_SLOT( slotButtonNext() ) );
addWidget( _infoWidget, 1 );
// Question Widget
@ -79,7 +79,7 @@ void KEducaView::init()
_buttonGroup = new KGroupEduca( _split, "ButtonGroup" );
_buttonGroup->setRadioButtonExclusive( true );
_buttonNext = new KPushButton( i18n( "&Next >>" ), _questionWidget, "ButtonNext" );
connect( _buttonNext, TQT_SIGNAL( clicked() ), TQT_SLOT( slotButtonNext() ) );
connect( _buttonNext, TQ_SIGNAL( clicked() ), TQ_SLOT( slotButtonNext() ) );
addWidget( _questionWidget, 2 );
// Results Widget
@ -87,14 +87,14 @@ void KEducaView::init()
_viewResults = new TQTextEdit( _resultsWidget );
_viewResults->setReadOnly( true );
_buttonSave = new KPushButton( i18n( "&Save Results..." ), _resultsWidget );
connect( _buttonSave, TQT_SIGNAL( clicked() ), TQT_SLOT( slotButtonSave() ) );
connect( _buttonSave, TQ_SIGNAL( clicked() ), TQ_SLOT( slotButtonSave() ) );
/* FIXME: This is a hack
* The results widget can be shown only in the end of the test (when you should be shown the
* option to save the results) or at the middle of the test, after each question (when there should
* be a "Next" button).
*/
_buttonResultsNext = new KPushButton( i18n( "&Next >>" ), _resultsWidget );
connect( _buttonResultsNext, TQT_SIGNAL( clicked() ), TQT_SLOT( slotButtonNext() ) );
connect( _buttonResultsNext, TQ_SIGNAL( clicked() ), TQ_SLOT( slotButtonNext() ) );
_buttonResultsNext->hide();
addWidget( _resultsWidget, 3 );
@ -275,8 +275,8 @@ void KEducaView::showRecord()
if (!_timeoutTimer)
{
_timeoutTimer = new TQTimer(this);
connect(_timeoutTimer, TQT_SIGNAL(timeout()),
this, TQT_SLOT(questionTimedOut()));
connect(_timeoutTimer, TQ_SIGNAL(timeout()),
this, TQ_SLOT(questionTimedOut()));
}
_timeoutTimer->start(1000*timeout);
_questionText->countdown(timeout);

@ -84,8 +84,8 @@ void KQuestion::countdown(int starttime)
if (!_countdownTimer)
{
_countdownTimer = new TQTimer(this);
connect(_countdownTimer, TQT_SIGNAL(timeout()),
this, TQT_SLOT(countDownOne()));
connect(_countdownTimer, TQ_SIGNAL(timeout()),
this, TQ_SLOT(countDownOne()));
}
_countdownTimer->start(1000);
// make one step less than time passes by in seconds

@ -92,8 +92,8 @@ void KEducaBuilder::init()
_listAnswer = new TDEListBox( _split, "_listAnswer" );
_listAnswer->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, _listAnswer->sizePolicy().hasHeightForWidth() ) );
connect( _listAnswer, TQT_SIGNAL( highlighted(TQListBoxItem *) ), this, TQT_SLOT( slotPreview(TQListBoxItem *) ) );
connect( _listAnswer, TQT_SIGNAL( doubleClicked(TQListBoxItem *) ), this, TQT_SLOT( slotEditbyList(TQListBoxItem *) ) );
connect( _listAnswer, TQ_SIGNAL( highlighted(TQListBoxItem *) ), this, TQ_SLOT( slotPreview(TQListBoxItem *) ) );
connect( _listAnswer, TQ_SIGNAL( doubleClicked(TQListBoxItem *) ), this, TQ_SLOT( slotEditbyList(TQListBoxItem *) ) );
_preview = new TQTextView( _split, "_preview" );
_preview->setFrameShape( TQTextView::NoFrame );
@ -111,21 +111,21 @@ void KEducaBuilder::init()
/** Init menu bar settings */
void KEducaBuilder::initMenuBar()
{
KStdAction::openNew(this, TQT_SLOT( slotFileOpenNew() ), actionCollection());
KStdAction::open (this, TQT_SLOT( slotFileOpen() ), actionCollection());
(void)new TDEAction(i18n("Open &Gallery..."), 0, 0, this, TQT_SLOT( slotGallery() ), actionCollection(), "open_gallery");
_recentFiles = KStdAction::openRecent(this, TQT_SLOT ( slotFileOpenURL(const KURL &)), actionCollection());
KStdAction::save (this, TQT_SLOT( slotFileSave() ), actionCollection());
KStdAction::saveAs (this, TQT_SLOT( slotFileSaveAs() ), actionCollection());
KStdAction::print (this, TQT_SLOT( slotFilePrint() ), actionCollection());
(void)new TDEAction(i18n("Document Info"), "application-vnd.tde.info", 0, this, TQT_SLOT( slotHeader() ), actionCollection(), "info_doc");
KStdAction::quit(this, TQT_SLOT( close() ), actionCollection());
(void)new TDEAction(i18n("&Add..."), "addquestion", 0, this, TQT_SLOT( slotAdd() ), actionCollection(), "question_add");
(void)new TDEAction(i18n("&Edit..."), "editquestion", 0, this, TQT_SLOT( slotEdit() ), actionCollection(), "question_edit");
(void)new TDEAction(i18n("&Remove"), "delquestion", 0, this, TQT_SLOT( slotRemove() ), actionCollection(), "question_remove");
(void)new TDEAction(i18n("&Up"), "go-up", 0, this, TQT_SLOT( slotUp() ), actionCollection(), "question_up");
(void)new TDEAction(i18n("&Down"), "go-down", 0, this, TQT_SLOT( slotDown() ), actionCollection(), "question_down");
KStdAction::openNew(this, TQ_SLOT( slotFileOpenNew() ), actionCollection());
KStdAction::open (this, TQ_SLOT( slotFileOpen() ), actionCollection());
(void)new TDEAction(i18n("Open &Gallery..."), 0, 0, this, TQ_SLOT( slotGallery() ), actionCollection(), "open_gallery");
_recentFiles = KStdAction::openRecent(this, TQ_SLOT ( slotFileOpenURL(const KURL &)), actionCollection());
KStdAction::save (this, TQ_SLOT( slotFileSave() ), actionCollection());
KStdAction::saveAs (this, TQ_SLOT( slotFileSaveAs() ), actionCollection());
KStdAction::print (this, TQ_SLOT( slotFilePrint() ), actionCollection());
(void)new TDEAction(i18n("Document Info"), "application-vnd.tde.info", 0, this, TQ_SLOT( slotHeader() ), actionCollection(), "info_doc");
KStdAction::quit(this, TQ_SLOT( close() ), actionCollection());
(void)new TDEAction(i18n("&Add..."), "addquestion", 0, this, TQ_SLOT( slotAdd() ), actionCollection(), "question_add");
(void)new TDEAction(i18n("&Edit..."), "editquestion", 0, this, TQ_SLOT( slotEdit() ), actionCollection(), "question_edit");
(void)new TDEAction(i18n("&Remove"), "delquestion", 0, this, TQ_SLOT( slotRemove() ), actionCollection(), "question_remove");
(void)new TDEAction(i18n("&Up"), "go-up", 0, this, TQ_SLOT( slotUp() ), actionCollection(), "question_up");
(void)new TDEAction(i18n("&Down"), "go-down", 0, this, TQ_SLOT( slotDown() ), actionCollection(), "question_down");
}
/** Delete current document and start new */

@ -42,8 +42,8 @@ KEducaEditorStartDialog::KEducaEditorStartDialog(KEducaBuilder * parent, const c
// setup connections
urlRequester->setFilter( "application/x-edu");
connect( startChoiceBtnGrp, TQT_SIGNAL( clicked(int) ),
this, TQT_SLOT( slotChoiceChanged(int) ) );
connect( startChoiceBtnGrp, TQ_SIGNAL( clicked(int) ),
this, TQ_SLOT( slotChoiceChanged(int) ) );
}
/** based on code in tdeaction.cpp

@ -41,10 +41,10 @@ KTagComboBox::KTagComboBox (TQWidget * parent, const char *name)
{
_popup = new TQPopupMenu(this);
_tags = new TQStringList;
connect( _popup, TQT_SIGNAL(activated(int)),
TQT_SLOT(internalActivate(int)) );
connect( _popup, TQT_SIGNAL(highlighted(int)),
TQT_SLOT(internalHighlight(int)) );
connect( _popup, TQ_SIGNAL(activated(int)),
TQ_SLOT(internalActivate(int)) );
connect( _popup, TQ_SIGNAL(highlighted(int)),
TQ_SLOT(internalHighlight(int)) );
}
void KTagComboBox::popupMenu()
@ -148,10 +148,10 @@ void KTagComboBox::insertSubmenu(const TQString &text, const TQString &tag, cons