added search icon

This commit is contained in:
Oğuzhan İNAN
2019-03-22 23:08:49 +01:00
parent 6334f77328
commit 8a7015956e
10 changed files with 101 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
#include "search_page.h"
#include "ui_search_page.h"
SearchPage::SearchPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::SearchPage)
{
ui->setupUi(this);
}
SearchPage::~SearchPage()
{
delete ui;
}

View File

@@ -0,0 +1,22 @@
#ifndef SEARCH_PAGE_H
#define SEARCH_PAGE_H
#include <QWidget>
namespace Ui {
class SearchPage;
}
class SearchPage : public QWidget
{
Q_OBJECT
public:
explicit SearchPage(QWidget *parent = 0);
~SearchPage();
private:
Ui::SearchPage *ui;
};
#endif // SEARCH_PAGE_H

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SearchPage</class>
<widget class="QWidget" name="SearchPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>844</width>
<height>597</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
</widget>
<resources/>
<connections/>
</ui>

View File

@@ -34,6 +34,7 @@ void App::init()
dashboardPage = new DashboardPage(mSlidingStacked);
startupAppsPage = new StartupAppsPage(mSlidingStacked);
searchPage = new SearchPage(mSlidingStacked);
systemCleanerPage = new SystemCleanerPage(mSlidingStacked);
servicesPage = new ServicesPage(mSlidingStacked);
processPage = new ProcessesPage(mSlidingStacked);

View File

@@ -18,6 +18,7 @@
#include "Pages/Settings/settings_page.h"
#include "Pages/AptSourceManager/apt_source_manager_page.h"
#include "Pages/GnomeSettings/gnome_settings_page.h"
#include "Pages/Search/search_page.h"
#include "feedback.h"
namespace Ui {
@@ -71,6 +72,7 @@ private:
DashboardPage *dashboardPage;
StartupAppsPage *startupAppsPage;
SystemCleanerPage *systemCleanerPage;
SearchPage *searchPage;
ServicesPage *servicesPage;
ProcessesPage *processPage;
UninstallerPage *uninstallerPage;

View File

@@ -182,6 +182,34 @@
</attribute>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnSearch">
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="toolTip">
<string>Search</string>
</property>
<property name="text">
<string/>
</property>
<property name="iconSize">
<size>
<width>28</width>
<height>28</height>
</size>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">sidebarBtnGroup</string>
</attribute>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnServices">
<property name="cursor">
@@ -429,6 +457,7 @@
<zorder>btnFeedback</zorder>
<zorder>btnGnomeSettings</zorder>
<zorder>btnAptSourceManager</zorder>
<zorder>btnSearch</zorder>
</widget>
</item>
<item>

View File

@@ -51,7 +51,8 @@ SOURCES += \
Pages/AptSourceManager/apt_source_edit.cpp \
Managers/setting_manager.cpp \
sliding_stacked_widget.cpp \
signal_mapper.cpp
signal_mapper.cpp \
Pages/Search/search_page.cpp
HEADERS += \
app.h \
@@ -83,7 +84,8 @@ HEADERS += \
feedback.h \
Pages/AptSourceManager/apt_source_edit.h \
Managers/setting_manager.h \
signal_mapper.h
signal_mapper.h \
Pages/Search/search_page.h
FORMS += \
app.ui \
@@ -108,7 +110,8 @@ FORMS += \
Pages/GnomeSettings/window_manager_settings.ui \
Pages/GnomeSettings/appearance_settings.ui \
feedback.ui \
Pages/AptSourceManager/apt_source_edit.ui
Pages/AptSourceManager/apt_source_edit.ui \
Pages/Search/search_page.ui
TRANSLATIONS += \
../translations/stacer_ar.ts \

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -420,6 +420,10 @@ QLabel[accessibleName="dialog-title"] {
qproperty-icon: url(:/static/themes/default/img/sidebar-icons/startup-apps.png);
}
#btnSearch {
qproperty-icon: url(:/static/themes/default/img/sidebar-icons/search.png);
}
#btnServices {
qproperty-icon: url(:/static/themes/default/img/sidebar-icons/services.png);
}

View File

@@ -421,6 +421,10 @@ QLabel[accessibleName="dialog-title"] {
qproperty-icon: url(:/static/themes/default/img/sidebar-icons/startup-apps.png);
}
#btnSearch {
qproperty-icon: url(:/static/themes/default/img/sidebar-icons/search.png);
}
#btnServices {
qproperty-icon: url(:/static/themes/default/img/sidebar-icons/services.png);
}