Added dictionaries settings dialog
[mdictionary] / trunk / src / base / gui / SearchBarWidget.cpp
index a73e6d4..3ff3a7e 100644 (file)
@@ -88,7 +88,7 @@ void SearchBarWidget::initializeUI() {
 
 
     clearSearchWordToolButton = new QToolButton();
-    clearSearchWordToolButton->setIcon(QIcon::fromTheme("gtk-delete"));
+    clearSearchWordToolButton->setIcon(QIcon::fromTheme("general_stop"));
     //tool buttons will have size 2 times smaller
     clearSearchWordToolButton->setMaximumSize(
             clearSearchWordToolButton->sizeHint().width()/2,
@@ -96,25 +96,34 @@ void SearchBarWidget::initializeUI() {
 
 
     historyNextToolButton = new QToolButton();
-    historyNextToolButton->setIcon(QIcon::fromTheme("gtk-go-forward"));
+    historyNextToolButton->setIcon(QIcon::fromTheme("general_forward"));
     historyNextToolButton->setMaximumSize(
             historyNextToolButton->sizeHint().width()/2,
             historyNextToolButton->sizeHint().height()/2);
 
 
     historyPrevToolButton = new QToolButton();
-    historyPrevToolButton->setIcon(QIcon::fromTheme("gtk-go-back"));
+    historyPrevToolButton->setIcon(QIcon::fromTheme("general_back"));
     historyPrevToolButton->setMaximumSize(
             historyPrevToolButton->sizeHint().width()/2,
             historyPrevToolButton->sizeHint().height()/2);
 
 
     historyShowToolButton = new QToolButton();
-    historyShowToolButton->setIcon(QIcon::fromTheme("gtk-go-up"));
+    historyShowToolButton->setIcon(QIcon::fromTheme("general_back"));
     historyShowToolButton->setMaximumSize(
             historyShowToolButton->sizeHint().width()/2,
             historyShowToolButton->sizeHint().height()/2);
 
+    QPixmap p = historyShowToolButton->icon().pixmap(256);
+    QMatrix m;
+    m.rotate(90);
+
+
+    QIcon temp;
+    temp.addPixmap(p.transformed(m));
+    historyShowToolButton->setIcon(temp);
+
 
     searchingProgressBar = new QProgressBar();
     //progress bar have minimum and maximum values set to 0, which will effect