Branch: master

c128ab57 2014-10-13 12:48:00 Timothy Pearson
Bring undo, redo, find, and revert icons into XDG compliance
M lib/kofficeui/KoCommandHistory.cpp
M lib/koproperty/editor.cpp
M lib/kotext/KoAutoFormatDia.cpp
M lib/kotext/KoCompletionDia.cpp
diff --git a/lib/kofficeui/KoCommandHistory.cpp b/lib/kofficeui/KoCommandHistory.cpp
index 53eaba8..4f81388 100644
--- a/lib/kofficeui/KoCommandHistory.cpp
+++ b/lib/kofficeui/KoCommandHistory.cpp
@@ -90,7 +90,7 @@
     d=new KoCommandHistoryPrivate();
     if (withMenus)
     {
-        TDEToolBarPopupAction * undo = new TDEToolBarPopupAction( i18n("&Undo"), "undo",
+        TDEToolBarPopupAction * undo = new TDEToolBarPopupAction( i18n("&Undo"), "edit-undo",
                                                               TDEStdAccel::undo(), this, TQT_SLOT( undo() ),
                                                               actionCollection, /*KStdAction::stdName( KStdAction::Undo )*/"koffice_undo" );
         connect( undo->popupMenu(), TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT( slotUndoAboutToShow() ) );
@@ -109,7 +109,7 @@
 
         connect( d->m_undoListBox, TQT_SIGNAL( changeNumberOfSelectedItem( int )), this, TQT_SLOT( slotChangeUndoNumberOfSelectedItem( int )));
 
-        TDEToolBarPopupAction * redo = new TDEToolBarPopupAction( i18n("&Redo"), "redo",
+        TDEToolBarPopupAction * redo = new TDEToolBarPopupAction( i18n("&Redo"), "edit-redo",
                                                               TDEStdAccel::redo(), this, TQT_SLOT( redo() ),
                                                               actionCollection, /*KStdAction::stdName( KStdAction::Redo )*/
                                                               "koffice_redo");
diff --git a/lib/koproperty/editor.cpp b/lib/koproperty/editor.cpp
index 6ba0e29..d4c61ec 100644
--- a/lib/koproperty/editor.cpp
+++ b/lib/koproperty/editor.cpp
@@ -138,7 +138,7 @@
 	d->undoButton->setFocusPolicy(TQ_NoFocus);
 	setFocusPolicy(TQ_ClickFocus);
 	d->undoButton->setMinimumSize(TQSize(5,5)); // allow to resize undoButton even below pixmap size
-	d->undoButton->setPixmap(SmallIcon("undo"));
+	d->undoButton->setPixmap(SmallIcon("edit-undo"));
 	TQToolTip::add(d->undoButton, i18n("Undo changes"));
 	d->undoButton->hide();
 	connect(d->undoButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(undo()));
diff --git a/lib/kotext/KoAutoFormatDia.cpp b/lib/kotext/KoAutoFormatDia.cpp
index 0c565ac..6b48af1 100644
--- a/lib/kotext/KoAutoFormatDia.cpp
+++ b/lib/kotext/KoAutoFormatDia.cpp
@@ -169,7 +169,7 @@
 KoAutoFormatDia::KoAutoFormatDia( TQWidget *parent, const char *name,
       KoAutoFormat * autoFormat )
     : KDialogBase( Tabbed, i18n("Autocorrection"), Ok | Cancel | User1, Ok,
-      parent, name, true, true, KGuiItem( i18n( "&Reset" ), "undo" )),
+      parent, name, true, true, KGuiItem( i18n( "&Reset" ), "edit-undo" )),
       oSimpleBegin( autoFormat->getConfigTypographicSimpleQuotes().begin ),
       oSimpleEnd( autoFormat->getConfigTypographicSimpleQuotes().end ),
       oDoubleBegin( autoFormat->getConfigTypographicDoubleQuotes().begin ),
diff --git a/lib/kotext/KoCompletionDia.cpp b/lib/kotext/KoCompletionDia.cpp
index c500cca..9def0ec 100644
--- a/lib/kotext/KoCompletionDia.cpp
+++ b/lib/kotext/KoCompletionDia.cpp
@@ -36,7 +36,7 @@
 
 KoCompletionDia::KoCompletionDia( TQWidget *parent, const char *name, KoAutoFormat * autoFormat )
     : KDialogBase( parent, name , true, i18n( "Completion" ), Ok|Cancel|User1,
-      Ok, true, KGuiItem( i18n( "&Reset" ), "undo" ) )
+      Ok, true, KGuiItem( i18n( "&Reset" ), "edit-undo" ) )
 {
     TQVBox *page = makeVBoxMainWidget();
     m_widget = new KoCompletion(page, autoFormat);