Skip to content

Commit

Permalink
Merge 26940ba into 4e43514
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSpaTeam committed May 3, 2018
2 parents 4e43514 + 26940ba commit 3571603
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 32 deletions.
55 changes: 55 additions & 0 deletions icons/folder-new.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources.qrc
Expand Up @@ -33,5 +33,6 @@
<file alias="applications-system.svg">icons/applications-system.svg</file>
<file alias="edit-copy.svg">icons/edit-copy.svg</file>
<file alias="edit-clear.svg">icons/edit-clear.svg</file>
<file alias="folder-new">icons/folder-new.svg</file>
</qresource>
</RCC>
17 changes: 17 additions & 0 deletions src/mainwindow.cpp
Expand Up @@ -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")));
}

/**
Expand Down
32 changes: 0 additions & 32 deletions src/mainwindow.ui
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 3571603

Please sign in to comment.