Commit 390ca28e authored by André Wöbbeking's avatar André Wöbbeking
Browse files

use KStdGuiItem whenever possible for consistent look & feel.

svn path=/trunk/KDE/kdebase/kfind/; revision=537997
parent bba1a3b1
......@@ -72,10 +72,10 @@ Kfind::Kfind(QWidget *parent, const char *name)
lay->addStretch(1);
mTopLayout->addWidget(mButtonBox);
mSearch = new KPushButton( KGuiItem(i18n("&Find"), "find"), mButtonBox );
mSearch = new KPushButton( KStdGuiItem::find(), mButtonBox );
mButtonBox->setSpacing( (tabWidget->sizeHint().height()-4*mSearch->sizeHint().height()) / 4);
connect( mSearch, SIGNAL(clicked()), this, SLOT( startSearch() ) );
mStop = new KPushButton( KGuiItem(i18n("Stop"), "stop"), mButtonBox );
mStop = new KPushButton( KStdGuiItem::stop(), mButtonBox );
connect( mStop, SIGNAL(clicked()), this, SLOT( stopSearch() ) );
mSave = new KPushButton( KStdGuiItem::saveAs(), mButtonBox );
connect( mSave, SIGNAL(clicked()), this, SLOT( saveResults() ) );
......
......@@ -27,7 +27,7 @@ KfindDlg::KfindDlg(const KUrl & url, QWidget *parent, const char *name)
: KDialogBase( Plain, QString(),
User1 | User2 | Apply | Close | Help, Apply,
parent, name, true, true,
KGuiItem(i18n("Stop"), "stop"),
KStdGuiItem::stop(),
KStdGuiItem::saveAs())
{
QWidget::setWindowTitle( i18n("Find Files/Folders" ) );
......@@ -37,7 +37,7 @@ KfindDlg::KfindDlg(const KUrl & url, QWidget *parent, const char *name)
enableButton(User1, false); // Disable "Stop"
enableButton(User2, false); // Disable "Save As..."
setButtonGuiItem(KDialog::Apply, KGuiItem(i18n("&Find"), "find"));
setButtonGuiItem(KDialog::Apply, KStdGuiItem::find());
isResultReported = false;
......
......@@ -288,7 +288,7 @@ void KfindWindow::deleteFiles()
{
QString tmp = i18np("Do you really want to delete the selected file?",
"Do you really want to delete the %n selected files?",selectedItems().count());
if (KMessageBox::warningContinueCancel(parentWidget(), tmp, "", KGuiItem( i18n("&Delete"), "editdelete")) == KMessageBox::Cancel)
if (KMessageBox::warningContinueCancel(parentWidget(), tmp, "", KStdGuiItem::del()) == KMessageBox::Cancel)
return;
// Iterate on all selected elements
......
......@@ -46,7 +46,7 @@ public:
KonqExtensionManager::KonqExtensionManager(QWidget *parent, KonqMainWindow *mainWindow, KParts::ReadOnlyPart* activePart) :
KDialogBase(Plain, i18n("Configure"), Default | Cancel | Apply | Ok | User1,
Ok, parent, "extensionmanager", false, true, KGuiItem(i18n("&Reset"), "undo"))
Ok, parent, "extensionmanager", false, true, KStdGuiItem::reset())
{
d = new KonqExtensionManagerPrivate;
showButton(User1, false);
......
......@@ -315,7 +315,7 @@ void KonqSidebarBookmarkModule::slotDelete()
: i18n("Are you sure you wish to remove the bookmark\n\"%1\"?", bookmark.text()),
folder ? i18n("Bookmark Folder Deletion")
: i18n("Bookmark Deletion"),
KGuiItem( i18n("&Delete"), "editdelete"), KStdGuiItem::cancel())
KStdGuiItem::del(), KStdGuiItem::cancel())
!= KMessageBox::Yes
)
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment