Q3Whatsthis--

svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=533644
remotes/origin/kdvi
Laurent Montel 20 years ago
parent 1db4258759
commit 7f0d53b512
  1. 6
      fontprogress.cpp
  2. 6
      infodialog.cpp
  3. 2
      optionDialogFontsWidget.cpp

@ -46,20 +46,20 @@ fontProgressDialog::fontProgressDialog(const QString& helpIndex, const QString&
TextLabel1 = new QLabel( label, page, "TextLabel2" ); TextLabel1 = new QLabel( label, page, "TextLabel2" );
TextLabel1->setAlignment( int( Qt::AlignCenter ) ); TextLabel1->setAlignment( int( Qt::AlignCenter ) );
TextLabel1->setWhatsThis( whatsThis ); TextLabel1->setWhatsThis( whatsThis );
QToolTip::add( TextLabel1, ttip ); TextLabel1->setToolTip( ttip );
if (progressbar) { if (progressbar) {
ProgressBar1 = new KProgressBar( page ); ProgressBar1 = new KProgressBar( page );
ProgressBar1->setFormat(i18n("%v of %m")); ProgressBar1->setFormat(i18n("%v of %m"));
ProgressBar1->setWhatsThis( whatsThis ); ProgressBar1->setWhatsThis( whatsThis );
QToolTip::add( ProgressBar1, ttip ); ProgressBar1->setToolTip( ttip );
} else } else
ProgressBar1 = NULL; ProgressBar1 = NULL;
TextLabel2 = new QLabel( "", page, "TextLabel2" ); TextLabel2 = new QLabel( "", page, "TextLabel2" );
TextLabel2->setAlignment( int( Qt::AlignCenter ) ); TextLabel2->setAlignment( int( Qt::AlignCenter ) );
TextLabel2->setWhatsThis( whatsThis ); TextLabel2->setWhatsThis( whatsThis );
QToolTip::add( TextLabel2, ttip ); TextLabel2->setToolTip( ttip );
qApp->connect(this, SIGNAL(finished()), this, SLOT(killProcess())); qApp->connect(this, SIGNAL(finished()), this, SLOT(killProcess()));
} }

@ -34,7 +34,7 @@ infoDialog::infoDialog( QWidget* parent )
QVBoxLayout *topLayout1 = new QVBoxLayout( page1, 0, 6 ); QVBoxLayout *topLayout1 = new QVBoxLayout( page1, 0, 6 );
TextLabel1 = new QTextEdit(page1); TextLabel1 = new QTextEdit(page1);
TextLabel1->setReadOnly(true); 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 ); topLayout1->addWidget( TextLabel1 );
QFrame *page2 = addPage( i18n("Fonts") ); QFrame *page2 = addPage( i18n("Fonts") );
@ -43,7 +43,7 @@ infoDialog::infoDialog( QWidget* parent )
TextLabel2->setReadOnly(true); TextLabel2->setReadOnly(true);
TextLabel2->setMinimumWidth(fontMetrics().maxWidth()*40); TextLabel2->setMinimumWidth(fontMetrics().maxWidth()*40);
TextLabel2->setMinimumHeight(fontMetrics().height()*10); 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. " 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.") ); "This is useful for experts who want to locate problems in the setup of TeX or KDVI.") );
topLayout2->addWidget( TextLabel2 ); topLayout2->addWidget( TextLabel2 );
@ -53,7 +53,7 @@ infoDialog::infoDialog( QWidget* parent )
TextLabel3 = new QTextEdit(page3); TextLabel3 = new QTextEdit(page3);
TextLabel3->setReadOnly(true); TextLabel3->setReadOnly(true);
TextLabel3->setText( i18n("No output from any external program received.") ); 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. " TextLabel3->setWhatsThis( i18n("KDVI uses external programs, such as MetaFont, dvipdfm or dvips. "
"This text field shows the output of these programs. " "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.") ); "That is useful for experts who want to find problems in the setup of TeX or KDVI.") );

@ -26,7 +26,7 @@ optionDialogFontsWidget::optionDialogFontsWidget( QWidget* parent, const char*
#ifndef HAVE_FREETYPE #ifndef HAVE_FREETYPE
kcfg_UseType1Fonts->setChecked(false); kcfg_UseType1Fonts->setChecked(false);
kcfg_UseType1Fonts->setEnabled(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 " 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 " "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 " "fonts, you must either install the FreeType library and recompile KDVI "

Loading…
Cancel
Save