summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClaudio Maradonna <penguyman@stronzi.org>2018-05-03 23:54:31 +0200
committerClaudio Maradonna <penguyman@stronzi.org>2018-05-03 23:54:31 +0200
commitd038019c51489ed9dd8bb833e843204ba59df7f0 (patch)
treec4c2fe9600b2edf4df3cb2e54743ac9eabc84c51 /src
parent911b12de792995a8612a9ca2bd3ec9b5084f3954 (diff)
Should fix #383
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp17
-rw-r--r--src/mainwindow.ui32
2 files changed, 17 insertions, 32 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2751523b..bc913ccf 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -103,6 +103,23 @@ void MainWindow::initToolBarButtons() {
connect(ui->actionUpdate, SIGNAL(triggered()), this, SLOT(onUpdate()));
connect(ui->actionUsers, SIGNAL(triggered()), this, SLOT(onUsers()));
connect(ui->actionConfig, SIGNAL(triggered()), this, SLOT(onConfig()));
+
+ ui->actionAddPassword->setIcon(
+ QIcon::fromTheme("document-new", QIcon(":/icons/document-new.svg")));
+ ui->actionAddFolder->setIcon(
+ QIcon::fromTheme("folder-new", QIcon(":/icons/folder-new.svg")));
+ ui->actionEdit->setIcon(QIcon::fromTheme(
+ "document-properties", QIcon(":/icons/document-properties.svg")));
+ ui->actionDelete->setIcon(
+ QIcon::fromTheme("edit-delete", QIcon(":/icons/edit-delete.svg")));
+ ui->actionPush->setIcon(
+ QIcon::fromTheme("go-up", QIcon(":/icons/go-top.svg")));
+ ui->actionUpdate->setIcon(
+ QIcon::fromTheme("go-down", QIcon(":/icons/go-bottom.svg")));
+ ui->actionUsers->setIcon(QIcon::fromTheme(
+ "x-office-address-book", QIcon(":/icons/x-office-address-book.svg")));
+ ui->actionConfig->setIcon(QIcon::fromTheme(
+ "applications-system", QIcon(":/icons/applications-system.svg")));
}
/**
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index 51b4bb3b..65a6747b 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -327,10 +327,6 @@ p, li { white-space: pre-wrap; }
<addaction name="actionConfig"/>
</widget>
<action name="actionAddPassword">
- <property name="icon">
- <iconset theme="document-new">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Add password</string>
</property>
@@ -342,10 +338,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionAddFolder">
- <property name="icon">
- <iconset theme="folder-new">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Add folder</string>
</property>
@@ -354,10 +346,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionEdit">
- <property name="icon">
- <iconset theme="document-properties">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Edit</string>
</property>
@@ -366,10 +354,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionDelete">
- <property name="icon">
- <iconset theme="edit-delete">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Delete</string>
</property>
@@ -378,10 +362,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionPush">
- <property name="icon">
- <iconset theme="go-up">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Push</string>
</property>
@@ -390,10 +370,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionUpdate">
- <property name="icon">
- <iconset theme="go-down">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Update</string>
</property>
@@ -402,10 +378,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionUsers">
- <property name="icon">
- <iconset theme="x-office-address-book">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Users</string>
</property>
@@ -414,10 +386,6 @@ p, li { white-space: pre-wrap; }
</property>
</action>
<action name="actionConfig">
- <property name="icon">
- <iconset theme="applications-system">
- <normaloff>.</normaloff>.</iconset>
- </property>
<property name="text">
<string>Config</string>
</property>