diff --git a/fontprogress.cpp b/fontprogress.cpp index b6fd410c6..835250b2c 100644 --- a/fontprogress.cpp +++ b/fontprogress.cpp @@ -46,20 +46,20 @@ fontProgressDialog::fontProgressDialog(const QString& helpIndex, const QString& TextLabel1 = new QLabel( label, page, "TextLabel2" ); TextLabel1->setAlignment( int( Qt::AlignCenter ) ); TextLabel1->setWhatsThis( whatsThis ); - QToolTip::add( TextLabel1, ttip ); + TextLabel1->setToolTip( ttip ); if (progressbar) { ProgressBar1 = new KProgressBar( page ); ProgressBar1->setFormat(i18n("%v of %m")); ProgressBar1->setWhatsThis( whatsThis ); - QToolTip::add( ProgressBar1, ttip ); + ProgressBar1->setToolTip( ttip ); } else ProgressBar1 = NULL; TextLabel2 = new QLabel( "", page, "TextLabel2" ); TextLabel2->setAlignment( int( Qt::AlignCenter ) ); TextLabel2->setWhatsThis( whatsThis ); - QToolTip::add( TextLabel2, ttip ); + TextLabel2->setToolTip( ttip ); qApp->connect(this, SIGNAL(finished()), this, SLOT(killProcess())); } diff --git a/infodialog.cpp b/infodialog.cpp index 29bcef6ac..4e41dc978 100644 --- a/infodialog.cpp +++ b/infodialog.cpp @@ -34,7 +34,7 @@ infoDialog::infoDialog( QWidget* parent ) QVBoxLayout *topLayout1 = new QVBoxLayout( page1, 0, 6 ); TextLabel1 = new QTextEdit(page1); TextLabel1->setReadOnly(true); - QToolTip::add( TextLabel1, i18n("Information on the currently loaded DVI-file.") ); + TextLabel1->setToolTip( i18n("Information on the currently loaded DVI-file.") ); topLayout1->addWidget( TextLabel1 ); QFrame *page2 = addPage( i18n("Fonts") ); @@ -43,7 +43,7 @@ infoDialog::infoDialog( QWidget* parent ) TextLabel2->setReadOnly(true); TextLabel2->setMinimumWidth(fontMetrics().maxWidth()*40); TextLabel2->setMinimumHeight(fontMetrics().height()*10); - QToolTip::add( TextLabel2, i18n("Information on currently loaded fonts.") ); + TextLabel2->setToolTip( i18n("Information on currently loaded fonts.") ); TextLabel2->setWhatsThis( i18n("This text field shows detailed information about the currently loaded fonts. " "This is useful for experts who want to locate problems in the setup of TeX or KDVI.") ); topLayout2->addWidget( TextLabel2 ); @@ -53,7 +53,7 @@ infoDialog::infoDialog( QWidget* parent ) TextLabel3 = new QTextEdit(page3); TextLabel3->setReadOnly(true); TextLabel3->setText( i18n("No output from any external program received.") ); - QToolTip::add( TextLabel3, i18n("Output of external programs.") ); + TextLabel3->setToolTip( i18n("Output of external programs.") ); TextLabel3->setWhatsThis( i18n("KDVI uses external programs, such as MetaFont, dvipdfm or dvips. " "This text field shows the output of these programs. " "That is useful for experts who want to find problems in the setup of TeX or KDVI.") ); diff --git a/optionDialogFontsWidget.cpp b/optionDialogFontsWidget.cpp index f273b8ae2..572e2f227 100644 --- a/optionDialogFontsWidget.cpp +++ b/optionDialogFontsWidget.cpp @@ -26,7 +26,7 @@ optionDialogFontsWidget::optionDialogFontsWidget( QWidget* parent, const char* #ifndef HAVE_FREETYPE kcfg_UseType1Fonts->setChecked(false); kcfg_UseType1Fonts->setEnabled(false); - QToolTip::add(UseType1Fonts, i18n("This version of KDVI does not support type 1 fonts.")); + UseType1Fonts->setToolTip( i18n("This version of KDVI does not support type 1 fonts.")); UseType1Fonts->setWhatsThis( i18n("KDVI needs the FreeType library to access type 1 fonts. This library " "was not present when KDVI was compiled. If you want to use type 1 " "fonts, you must either install the FreeType library and recompile KDVI "