mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-21 12:10:54 +03:00
Merge pull request #6 from qurious-pixel/icon
static smartctl & qt6 svg plugin
This commit is contained in:
BIN
.github/scripts/smartctl
vendored
Normal file
BIN
.github/scripts/smartctl
vendored
Normal file
Binary file not shown.
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@@ -28,11 +28,11 @@ jobs:
|
||||
- name: Install dependencies for glibc
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y qt6-base-dev libgl1-mesa-dev libxkbcommon-dev libvulkan-dev qmake6 smartmontools
|
||||
sudo apt install -y qt6-base-dev qt6-svg-dev libgl1-mesa-dev libxkbcommon-dev libvulkan-dev qmake6 smartmontools
|
||||
if: ${{ matrix.clib == 'glibc' }}
|
||||
- name: Install dependencies for musl
|
||||
run: |
|
||||
apk add git cmake make gcc g++ curl gcompat qt6-qtbase-dev qt6-qtbase-x11 smartmontools
|
||||
apk add git cmake make gcc g++ curl gcompat qt6-qtbase-dev qt6-qtbase-x11 qt6-qtsvg breeze smartmontools
|
||||
git config --global --add safe.directory '*'
|
||||
if: ${{ matrix.clib == 'musl' }}
|
||||
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
|
||||
mkdir -p AppDir/usr/bin
|
||||
cp build/KDiskInfo AppDir/usr/bin/
|
||||
cp /usr/sbin/smartctl AppDir/usr/bin/
|
||||
cp .github/scripts/smartctl AppDir/usr/bin/
|
||||
cp .github/scripts/KDiskInfo.desktop AppDir/
|
||||
cp icon.svg AppDir/KDiskInfo.svg
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModality::NonModal</enum>
|
||||
<enum>Qt::NonModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
@@ -22,6 +22,10 @@
|
||||
<property name="windowTitle">
|
||||
<string>KDiskInfo</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/icon.svg</normaloff>:/icons/icon.svg</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
@@ -38,9 +42,6 @@
|
||||
<property name="autoFillBackground">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Shadow::Raised</enum>
|
||||
</property>
|
||||
<property name="showGrid">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
@@ -57,15 +58,13 @@
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-previous"/>
|
||||
<iconset theme="go-previous">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
@@ -83,9 +82,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
@@ -100,7 +96,8 @@
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-next"/>
|
||||
<iconset theme="go-next">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -326,7 +323,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>30</height>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
@@ -366,7 +363,8 @@
|
||||
</widget>
|
||||
<action name="actionSave_JSON">
|
||||
<property name="icon">
|
||||
<iconset theme="document-save"/>
|
||||
<iconset theme="document-save">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Save JSON</string>
|
||||
@@ -374,18 +372,20 @@
|
||||
</action>
|
||||
<action name="actionQuit">
|
||||
<property name="icon">
|
||||
<iconset theme="application-exit"/>
|
||||
<iconset theme="application-exit">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Quit</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::MenuRole::QuitRole</enum>
|
||||
<enum>QAction::NoRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRescan_Refresh">
|
||||
<property name="icon">
|
||||
<iconset theme="view-refresh"/>
|
||||
<iconset theme="view-refresh">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Refresh Devices</string>
|
||||
@@ -393,7 +393,8 @@
|
||||
</action>
|
||||
<action name="actionGitHub">
|
||||
<property name="icon">
|
||||
<iconset theme="applications-internet"/>
|
||||
<iconset theme="applications-internet">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&GitHub</string>
|
||||
@@ -401,13 +402,14 @@
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="icon">
|
||||
<iconset theme="help-about"/>
|
||||
<iconset theme="help-about">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&About</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::MenuRole::AboutRole</enum>
|
||||
<enum>QAction::NoRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionIgnore_C4_Reallocation_Event_Count">
|
||||
@@ -440,6 +442,8 @@
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user