mirror of
https://github.com/oguzhaninan/Stacer.git
synced 2026-06-12 01:27:25 -04:00
added search icon
This commit is contained in:
14
stacer/Pages/Search/search_page.cpp
Normal file
14
stacer/Pages/Search/search_page.cpp
Normal 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;
|
||||
}
|
||||
22
stacer/Pages/Search/search_page.h
Normal file
22
stacer/Pages/Search/search_page.h
Normal 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
|
||||
19
stacer/Pages/Search/search_page.ui
Normal file
19
stacer/Pages/Search/search_page.ui
Normal 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>
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 \
|
||||
|
||||
BIN
stacer/static/themes/default/img/sidebar-icons/search.png
Normal file
BIN
stacer/static/themes/default/img/sidebar-icons/search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user