Commit 1fa45a7e authored by Laurent Montel's avatar Laurent Montel 😁

Q3Whatsthis--

svn path=/trunk/koffice/; revision=523266
parent 41b66af4
......@@ -82,11 +82,11 @@ add_subdirectory(libs)
add_subdirectory(interfaces)
#add_subdirectory(karbon)
add_subdirectory(kdgantt)
#add_subdirectory(kchart)
add_subdirectory(kchart)
#add_subdirectory(kexi)
#add_subdirectory(kformula)
#add_subdirectory(kivio)
#add_subdirectory(koshell)
add_subdirectory(koshell)
add_subdirectory(kounavail)
#add_subdirectory(kplato)
#add_subdirectory(kpresenter)
......
......@@ -61,105 +61,105 @@ KisWetPaletteWidget::KisWetPaletteWidget(QWidget *parent, const char *name) : su
b = new KisColorCup(this);
b->setColor( QColor(240, 32, 160) );
l->addWidget(b, 0, 0);
QToolTip::add(b, i18n("Quinacridone Rose"));
b->setToolTip( i18n("Quinacridone Rose"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(159, 88, 43));
l->addWidget(b, 0, 1);
QToolTip::add(b,i18n("Indian Red"));
b->setToolTip(i18n("Indian Red"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor( QColor(254, 220, 64) );
l->addWidget(b, 0, 2);
QToolTip::add(b,i18n("Cadmium Yellow"));
b->setToolTip(i18n("Cadmium Yellow"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(36, 180, 32));
l->addWidget(b, 0, 3);
QToolTip::add(b,i18n("Hookers Green"));
b->setToolTip(i18n("Hookers Green"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(16, 185, 215));
l->addWidget(b, 0, 4);
QToolTip::add(b,i18n("Cerulean Blue"));
b->setToolTip(i18n("Cerulean Blue"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(96, 32, 8));
l->addWidget(b, 0, 5);
QToolTip::add(b,i18n("Burnt Umber"));
b->setToolTip(i18n("Burnt Umber"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(254, 96, 8));
l->addWidget(b, 0, 6);
QToolTip::add(b,i18n("Cadmium Red"));
b->setToolTip(i18n("Cadmium Red"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(255, 136, 8));
l->addWidget(b, 0, 7);
QToolTip::add(b,i18n("Brilliant Orange"));
b->setToolTip(i18n("Brilliant Orange"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(240, 199, 8));
l->addWidget(b, 1, 0);
QToolTip::add(b,i18n("Hansa Yellow"));
b->setToolTip(i18n("Hansa Yellow"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(96, 170, 130));
l->addWidget(b, 1, 1);
QToolTip::add(b,i18n("Phthalo Green"));
b->setToolTip(i18n("Phthalo Green"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(48, 32, 170));
l->addWidget(b, 1, 2);
QToolTip::add(b,i18n("French Ultramarine"));
b->setToolTip(i18n("French Ultramarine"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(118, 16, 135));
l->addWidget(b, 1, 3);
QToolTip::add(b,i18n("Interference Lilac"));
b->setToolTip(i18n("Interference Lilac"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(254, 254, 254));
l->addWidget(b, 1, 4);
QToolTip::add(b,i18n("Titanium White"));
b->setToolTip(i18n("Titanium White"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(64, 64, 74));
l->addWidget(b, 1, 5);
QToolTip::add(b,i18n("Ivory Black"));
b->setToolTip(i18n("Ivory Black"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
b = new KisColorCup(this);
b->setColor(QColor(255, 255, 255));
l->addWidget(b, 1, 6);
QToolTip::add(b,i18n("Pure Water"));
b->setToolTip(i18n("Pure Water"));
b->setFixedSize(WIDTH, HEIGHT);
connect(b, SIGNAL(changed(const QColor &)), SLOT(slotFGColorSelected(const QColor &)));
......
......@@ -57,7 +57,7 @@ KisLabelProgress::KisLabelProgress(QWidget *parent, const char *name, WFlags f)
m_cancelButton = new EscapeButton(this, "cancel_button");
m_cancelButton->setIconSet(cancelIconSet);
QToolTip::add(m_cancelButton, i18n("Cancel"));
m_cancelButton->setToolTip( i18n("Cancel"));
connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(cancelPressed()));
m_bar = new KProgress(100, this);
......
......@@ -70,17 +70,17 @@ KisLayerBox::KisLayerBox(KisCanvasSubject *subject, QWidget *parent, const char
m_lst = new WdgLayerBox(this);
setMinimumSize(m_lst->minimumSizeHint());
QToolTip::add(m_lst->bnAdd, i18n("Create new layer"));
m_lst->bnAdd->setToolTip( i18n("Create new layer"));
QToolTip::add(m_lst->bnDelete, i18n("Remove current layer"));
m_lst->bnDelete->setToolTip( i18n("Remove current layer"));
QToolTip::add(m_lst->bnRaise, i18n("Raise current layer"));
m_lst->bnRaise->setToolTip( i18n("Raise current layer"));
m_lst->bnRaise->setEnabled(false);
m_lst->bnLower->setEnabled(false);
QToolTip::add(m_lst->bnLower, i18n("Lower current layer"));
m_lst->bnLower->setToolTip( i18n("Lower current layer"));
QToolTip::add(m_lst->bnProperties, i18n("Properties for layer"));
m_lst->bnProperties->setToolTip( i18n("Properties for layer"));
KIconLoader il( "krita" );
......
......@@ -304,7 +304,7 @@ LayerList::LayerList( QWidget *parent, const char *name )
addColumn( QString() );
header()->hide();
QToolTip::add(this, i18n("Right-click to create folders. Click on the layername to change the layer's name. Click and drag to move layers."));
this->setToolTip( i18n("Right-click to create folders. Click on the layername to change the layer's name. Click and drag to move layers."));
setNumRows( 2 );
......
......@@ -157,7 +157,7 @@ QString SqueezedComboBox::squeezeText( const QString& original)
void SqueezedComboBox::slotUpdateToolTip( int index )
{
QToolTip::remove(this);
QToolTip::add(this, m_originalItems[index]);
this->setToolTip( m_originalItems[index]);
}
QString SqueezedComboBox::itemHighlighted()
......
......@@ -971,7 +971,7 @@ bool KoDocument::saveNativeFormat( const QString & file )
{
kDebug(30003) << "Saving as a flat XML file." << endl;
QFile f( file );
if ( f.open( QIODevice::WriteOnly | QIODevice::Translate ) )
if ( f.open( QIODevice::WriteOnly /*| QIODevice::Translate*/ ) )
{
bool success = saveToStream( &f );
f.close();
......
......@@ -714,17 +714,17 @@ void KoRuler::mouseMoveEvent( QMouseEvent *e )
int firstX = d->rtl ? right - ip_first : left + ip_first;
if ( mx > firstX - 5 && mx < firstX + 5 &&
my >= 2 && my <= d->pmFirst.size().height() + 2 ) {
QToolTip::add( this, i18n("First line indent") );
this->setToolTip( i18n("First line indent") );
setCursor( Qt::ArrowCursor );
d->action = A_FIRST_INDENT;
} else if ( mx > left + ip_left - 5 && mx < left + ip_left + 5 &&
my >= height() - d->pmLeft.size().height() - 2 && my <= height() - 2 ) {
QToolTip::add( this, i18n("Left indent") );
this->setToolTip( i18n("Left indent") );
setCursor( Qt::ArrowCursor );
d->action = A_LEFT_INDENT;
} else if ( mx > right - ip_right - 5 && mx < right - ip_right + 5 &&
my >= height() - d->pmLeft.size().height() - 2 && my <= height() - 2 ) {
QToolTip::add( this, i18n("Right indent") );
this->setToolTip( i18n("Right indent") );
setCursor( Qt::ArrowCursor );
d->action = A_RIGHT_INDENT;
}
......@@ -877,11 +877,11 @@ void KoRuler::mouseMoveEvent( QMouseEvent *e )
if ( d->flags & F_NORESIZE )
break;
if ( my > top - 5 && my < top + 5 ) {
QToolTip::add( this, i18n("Top margin") );
this->setToolTip( i18n("Top margin") );
setCursor( Qt::SizeHorCursor );
d->action = A_BR_TOP;
} else if ( my > bottom - 5 && my < bottom + 5 ) {
QToolTip::add( this, i18n("Bottom margin") );
this->setToolTip( i18n("Bottom margin") );
setCursor( Qt::SizeHorCursor );
d->action = A_BR_BOTTOM;
}
......
......@@ -21,7 +21,7 @@
#include <qpixmap.h>
#include <qbitmap.h>
#include <q3whatsthis.h>
#include <qmenubar.h>
//Added by qt3to4:
#include <Q3PopupMenu>
......@@ -139,7 +139,7 @@ int KoSelectAction::plug(QWidget* widget, int index)
addContainer( bar, id_ );
if (!whatsThis().isEmpty())
Q3WhatsThis::add( bar->getButton(id_), whatsThis() );
bar->getButton(id_)->setWhatsThis( whatsThis() );
connect( bar, SIGNAL( destroyed() ), this, SLOT( slotDestroyed() ) );
......
......@@ -177,7 +177,7 @@ KoTemplateCreateDia::KoTemplateCreateDia( const Q3CString &templateType, KInstan
d->m_defaultTemplate = new QCheckBox( i18n("Use the new template as default"), mainwidget );
d->m_defaultTemplate->setChecked( true );
QToolTip::add( d->m_defaultTemplate, i18n("Use the new template every time %1 starts").arg(instance->aboutData()->programName() ) );
d->m_defaultTemplate->setToolTip( i18n("Use the new template every time %1 starts").arg(instance->aboutData()->programName() ) );
rightbox->addWidget( d->m_defaultTemplate );
enableButtonOK(false);
......
......@@ -104,7 +104,7 @@ QToolButton *KoToolBox::createButton(QWidget * parent, const char* iconName, QS
}
if ( !tooltip.isEmpty() ) {
QToolTip::add( button, tooltip );
button->setToolTip( tooltip );
}
return button;
}
......
......@@ -496,7 +496,7 @@ bool KoColorPanel::insertColor( const QColor& color, const QString& toolTip, boo
// inserted color will be located
QRect rect( mapFromPosition( m_nextPosition ) );
insertColor( color, false ); // check only once ;)
QToolTip::add( this, rect, toolTip );
this->setToolTip( rect, toolTip );
return true;
}
......
......@@ -20,7 +20,7 @@
#include <kcoloractions.h>
#include <q3popupmenu.h>
#include <q3whatsthis.h>
#include <qtooltip.h>
//Added by qt3to4:
#include <QPixmap>
......@@ -304,10 +304,10 @@ int KSelectColorAction::plug( QWidget* w, int index )
bar->getButton( id_ )->setName( Q3CString("toolbutton_")+name() );
if ( !whatsThis().isEmpty() )
Q3WhatsThis::add( bar->getButton(id_), whatsThisWithIcon() );
bar->getButton(id_)->setWhatsThis( whatsThisWithIcon() );
if ( !toolTip().isEmpty() )
QToolTip::add( bar->getButton(id_), toolTip() );
bar->getButton(id_)->setToolTip( toolTip() );
addContainer( bar, id_ );
......
......@@ -35,7 +35,7 @@
#include <ktoolbar.h>
#include <qpainter.h>
#include <qtooltip.h>
#include <q3whatsthis.h>
#include <klocale.h>
#include <kdebug.h>
#include <qapplication.h>
......@@ -145,7 +145,7 @@ TKSelectColorAction::~TKSelectColorAction()
void TKSelectColorAction::initToolBarButton(TKToolBarButton* b)
{
Q3WhatsThis::add( b, whatsThis() );
b->setWhatsThis( whatsThis() );
TKAction::initToolBarButton(b);
b->setDelayedPopup( popupMenu() );
updatePixmap(b);
......@@ -362,7 +362,7 @@ void TKColorPanel::insertColor( const QColor& color, const QString& text )
return;
insertColor(color);
QToolTip::add(m_pColorDict[color.name()],text);
m_pColorDict[color.name()]->setToolTip(text);
}
void TKColorPanel::insertColor( const QColor& color )
......
......@@ -142,7 +142,7 @@ QString TKToolBarButton::text()
void TKToolBarButton::modeChange()
{
QToolTip::add(this,d->m_text);
this->setToolTip(d->m_text);
int border = 3;
int w = 2*border;
......
......@@ -86,25 +86,25 @@ KoCMYKWidget::KoCMYKWidget(QWidget *parent, const char *name) : super(parent, na
mCIn->setFixedWidth(50);
mCIn->setFixedHeight(20);
mCIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mCIn, i18n( "Cyan" ) );
mCIn->setToolTip( i18n( "Cyan" ) );
mMIn = new QSpinBox(0, 255, 1, this);
mMIn->setFixedWidth(50);
mMIn->setFixedHeight(20);
mMIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mMIn, i18n( "Magenta" ) );
mMIn->setToolTip( i18n( "Magenta" ) );
mYIn = new QSpinBox(0, 255, 1, this);
mYIn->setFixedWidth(50);
mYIn->setFixedHeight(20);
mYIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mYIn, i18n( "Yellow" ) );
mYIn->setToolTip( i18n( "Yellow" ) );
mKIn = new QSpinBox(0, 255, 1, this);
mKIn->setFixedWidth(50);
mKIn->setFixedHeight(20);
mKIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mKIn, i18n( "Black" ) );
mKIn->setToolTip( i18n( "Black" ) );
mGrid->addMultiCellWidget(m_ColorButton, 0, 4, 0, 0, Qt::AlignTop);
mGrid->addWidget(mCLabel, 0, 1);
......
......@@ -59,17 +59,17 @@ KoHSVWidget::KoHSVWidget(QWidget *parent, const char *name) : super(parent, name
mHIn = new QSpinBox(0, 359, 1, this);
mHIn->setFixedSize(50, 20);
mHIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mHIn, i18n( "Hue" ) );
mHIn->setToolTip( i18n( "Hue" ) );
mSIn = new QSpinBox(0, 255, 1, this);
mSIn->setFixedSize(50, 20);
mSIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mSIn, i18n( "Saturation" ) );
mSIn->setToolTip( i18n( "Saturation" ) );
mVIn = new QSpinBox(0, 255, 1, this);
mVIn->setFixedSize(50, 20);
mVIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mVIn, i18n( "Value (brightness)" ) );
mVIn->setToolTip( i18n( "Value (brightness)" ) );
mGrid->addMultiCellWidget(m_ColorButton, 0, 0, 0, 1, Qt::AlignTop);
......
......@@ -75,19 +75,19 @@ KoRGBWidget::KoRGBWidget(QWidget *parent, const char *name) : super(parent, name
mRIn->setFixedWidth(50);
mRIn->setFixedHeight(20);
mRIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mRIn, i18n( "Red" ) );
mRIn->setToolTip( i18n( "Red" ) );
mGIn = new QSpinBox(0, 255, 1, this);
mGIn->setFixedWidth(50);
mGIn->setFixedHeight(20);
mGIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mGIn, i18n( "Green" ) );
mGIn->setToolTip( i18n( "Green" ) );
mBIn = new QSpinBox(0, 255, 1, this);
mBIn->setFixedWidth(50);
mBIn->setFixedHeight(20);
mBIn->setFocusPolicy( Qt::ClickFocus );
QToolTip::add( mBIn, i18n( "Blue" ) );
mBIn->setToolTip( i18n( "Blue" ) );
mGrid->addMultiCellWidget(m_ColorButton, 0, 3, 0, 0, Qt::AlignTop);
mGrid->addWidget(mRLabel, 0, 1);
......
......@@ -147,7 +147,7 @@ Editor::Editor(QWidget *parent, bool autoSync, const char *name)
setFocusPolicy(Qt::ClickFocus);
d->undoButton->setMinimumSize(QSize(5,5)); // allow to resize undoButton even below pixmap size
d->undoButton->setPixmap(SmallIcon("undo"));
QToolTip::add(d->undoButton, i18n("Undo changes"));
d->undoButton->setToolTip( i18n("Undo changes"));
d->undoButton->hide();
connect(d->undoButton, SIGNAL(clicked()), this, SLOT(undo()));
......
......@@ -66,7 +66,7 @@ class FontEditRequester : public KFontRequester
layout()->remove(button());//->reparent(this, 0, QPoint(0,0));
delete layout();
button()->setText(i18n("..."));
QToolTip::add(button(), i18n("Change font"));
button()->setToolTip( i18n("Change font"));
button()->setFocusPolicy(NoFocus);
button()->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
QFontMetrics fm(button()->font());
......
......@@ -64,7 +64,7 @@ PixmapEdit::PixmapEdit(Property *property, QWidget *parent, const char *name)
setHasBorders(false);
m_edit = new QLabel(this, "m_edit");
QToolTip::add(m_edit, i18n("Click to show image preview"));
m_edit->setToolTip( i18n("Click to show image preview"));
m_edit->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
m_edit->setMinimumHeight(5);
m_edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
......@@ -73,7 +73,7 @@ PixmapEdit::PixmapEdit(Property *property, QWidget *parent, const char *name)
setBackgroundMode(Qt::PaletteBase);
m_button = new QPushButton(i18n("..."), this, "m_button");
QToolTip::add(m_button, i18n("Insert image from file"));
m_button->setToolTip( i18n("Insert image from file"));
m_button->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
QFontMetrics fm(m_button->font());
m_button->setFixedWidth(fm.width(m_button->text()+" "));
......
......@@ -65,7 +65,7 @@ PointEdit::setValue(const QVariant &value, bool emitChange)
m_value = value;
m_edit->selectAll(false);
m_edit->setText(QString(POINTEDIT_MASK).arg(value.toPoint().x()).arg(value.toPoint().y()));
QToolTip::add(this, QString("%1, %2").arg(value.toPoint().x()).arg(value.toPoint().y()));
this->setToolTip( QString("%1, %2").arg(value.toPoint().x()).arg(value.toPoint().y()));
if (emitChange)
emit valueChanged(this);
......
......@@ -62,7 +62,7 @@ RectEdit::setValue(const QVariant &value, bool emitChange)
m_edit->selectAll(false);
m_edit->setText(QString(RECTEDIT_MASK).arg(value.toRect().x()).
arg(value.toRect().y()).arg(value.toRect().width()).arg(value.toRect().height()));
QToolTip::add(this, i18n("Position: %1, %2\nSize: %3 x %4").arg(value.toRect().x()).
this->setToolTip( i18n("Position: %1, %2\nSize: %3 x %4").arg(value.toRect().x()).
arg(value.toRect().y()).arg(value.toRect().width()).arg(value.toRect().height()));
if (emitChange)
......
......@@ -64,7 +64,7 @@ SizeEdit::setValue(const QVariant &value, bool emitChange)
m_value = value;
m_edit->selectAll(false);
m_edit->setText(QString(SIZEEDIT_MASK).arg(value.toSize().width()).arg(value.toSize().height()));
QToolTip::add(this, QString("%1 x %2").arg(value.toSize().width()).arg(value.toSize().height()));
this->setToolTip( QString("%1 x %2").arg(value.toSize().width()).arg(value.toSize().height()));
if (emitChange)
emit valueChanged(this);
......
......@@ -84,7 +84,7 @@ SizePolicyEdit::setValue(const QVariant &value, bool emitChange)
m_edit->setText(QString("%1/%2/%3/%4").arg(findDescription(value.toSizePolicy().horData())).
arg(findDescription(value.toSizePolicy().verData())).
arg(value.toSizePolicy().horStretch()).arg(value.toSizePolicy().verStretch()));
QToolTip::add(this, m_edit->text());
this->setToolTip( m_edit->text());
if (emitChange)
emit valueChanged(this);
......
......@@ -29,7 +29,7 @@
#include <kstandarddirs.h>
#include <qlayout.h>
#include <q3whatsthis.h>
#include <qcheckbox.h>
#include <qpushbutton.h>
#include <qtooltip.h>
......@@ -233,7 +233,7 @@ void KoAutoFormatDia::setupTab1()
"Convert &first letter of a sentence automatically to uppercase\n"
"(e.g. \"my house. in this town\" to \"my house. In this town\")"
) );
Q3WhatsThis::add( cbUpperCase, i18n(
cbUpperCase->setWhatsThis( i18n(
"Detect when a new sentence is started and always ensure that"
" the first character is an uppercase character."));
......@@ -244,7 +244,7 @@ void KoAutoFormatDia::setupTab1()
cbUpperUpper->setText( i18n(
"Convert &two uppercase characters to one uppercase and one"
" lowercase character\n (e.g. PErfect to Perfect)" ) );
Q3WhatsThis::add( cbUpperUpper, i18n(
cbUpperUpper->setWhatsThis( i18n(
"All words are checked for the common mistake of holding the "
"shift key down a bit too long. If some words must have two "
"uppercase characters, then those exceptions should be added in "
......@@ -254,7 +254,7 @@ void KoAutoFormatDia::setupTab1()
cbDetectUrl=new QCheckBox( tab1 );
cbDetectUrl->setText( i18n( "Autoformat &URLs" ) );
Q3WhatsThis::add( cbDetectUrl, i18n(
cbDetectUrl->setWhatsThis( i18n(
"Detect when a URL (Uniform Resource Locator) is typed and "
"provide formatting that matches the way an Internet browser "
"would show a URL."));
......@@ -263,7 +263,7 @@ void KoAutoFormatDia::setupTab1()
cbIgnoreDoubleSpace=new QCheckBox( tab1 );
cbIgnoreDoubleSpace->setText( i18n( "&Suppress double spaces" ) );
Q3WhatsThis::add( cbIgnoreDoubleSpace, i18n(
cbIgnoreDoubleSpace->setWhatsThis( i18n(
"Make sure that more than one space cannot be typed, as this is a "
"common mistake which is quite hard to find in formatted text."));
......@@ -272,7 +272,7 @@ void KoAutoFormatDia::setupTab1()
cbRemoveSpaceBeginEndLine=new QCheckBox( tab1 );
cbRemoveSpaceBeginEndLine->setText( i18n(
"R&emove spaces at the beginning and end of paragraphs" ) );
Q3WhatsThis::add( cbRemoveSpaceBeginEndLine, i18n(
cbRemoveSpaceBeginEndLine->setWhatsThis( i18n(
"Keep correct formatting and indenting of sentences by "
"automatically removing spaces typed at the beginning and end of "
"a paragraph."));
......@@ -282,7 +282,7 @@ void KoAutoFormatDia::setupTab1()
cbAutoChangeFormat=new QCheckBox( tab1 );
cbAutoChangeFormat->setText( i18n(
"Automatically do &bold and underline formatting") );
Q3WhatsThis::add( cbAutoChangeFormat, i18n(
cbAutoChangeFormat->setWhatsThis( i18n(
"When you use _underline_ or *bold*, the text between the "
"underscores or asterisks will be converted to underlined or "
"bold text.") );
......@@ -293,7 +293,7 @@ void KoAutoFormatDia::setupTab1()
cbAutoReplaceNumber->setText( i18n(
"We add the 1/2 char at the %1", "Re&place 1/2... with %1..." )
.arg( QString( "" ) ) );
Q3WhatsThis::add( cbAutoReplaceNumber, i18n(
cbAutoReplaceNumber->setWhatsThis( i18n(
"Most standard fraction notations will be converted when available"
) );
......@@ -302,7 +302,7 @@ void KoAutoFormatDia::setupTab1()
cbUseNumberStyle=new QCheckBox( tab1 );
cbUseNumberStyle->setText( i18n(
"Use &autonumbering for numbered paragraphs" ) );
Q3WhatsThis::add( cbUseNumberStyle, i18n(
cbUseNumberStyle->setWhatsThis( i18n(
"When typing '1)' or similar in front of a paragraph, "
"automatically convert the paragraph to use that numbering style. "
"This has the advantage that further paragraphs will also be "
......@@ -322,7 +322,7 @@ void KoAutoFormatDia::setupTab1()
cbUseBulletStyle=new QCheckBox( tab1 );
cbUseBulletStyle->setText( i18n(
"Use l&ist-formatting for bulleted paragraphs" ) );
Q3WhatsThis::add( cbUseBulletStyle, i18n(
cbUseBulletStyle->setWhatsThis( i18n(
"When typing '*' or '-' in front of a paragraph, automatically "
"convert the paragraph to use that list-style. Using a list-style "
"formatting means that a correct bullet is used to draw the list."
......@@ -559,7 +559,7 @@ void KoAutoFormatDia::setupTab3()
SLOT( slotAddEntry()));
pbSpecialChar1 = new QPushButton( "...", tab3 );
QToolTip::add( pbSpecialChar1, i18n( "Insert a special character..." ) );
pbSpecialChar1->setToolTip( i18n( "Insert a special character..." ) );
pbSpecialChar1->setFixedWidth( 40 );
grid->addWidget( pbSpecialChar1, 3, 2 );
......@@ -579,7 +579,7 @@ void KoAutoFormatDia::setupTab3()
SLOT( slotAddEntry()));
pbSpecialChar2 = new QPushButton( "...", tab3 );
QToolTip::add( pbSpecialChar2, i18n( "Insert a special character..." ) );
pbSpecialChar2->setToolTip( i18n( "Insert a special character..." ) );
pbSpecialChar2->setFixedWidth( 40 );
grid->addWidget( pbSpecialChar2, 3, 5 );
......
......@@ -20,7 +20,7 @@
#include <klocale.h>
#include <q3vbox.h>