Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 793 KiB |
Before Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 40 KiB |
@ -1,11 +0,0 @@ |
|||||
<RCC> |
|
||||
<qresource prefix="img"> |
|
||||
<file>favicon.ico</file> |
|
||||
</qresource> |
|
||||
<qresource prefix="png"> |
|
||||
<file>close.png</file> |
|
||||
<file>fullscreen3.png</file> |
|
||||
<file>fullscreen4.png</file> |
|
||||
<file>min.png</file> |
|
||||
</qresource> |
|
||||
</RCC> |
|
Before Width: | Height: | Size: 150 B |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 32 KiB |
@ -1,10 +1,10 @@ |
|||||
#include <QApplication> |
#include <QApplication> |
||||
#include "widget.h" |
#include "mainwindow.h" |
||||
|
|
||||
int main(int argc, char *argv[]) { |
int main(int argc, char *argv[]) { |
||||
QApplication a(argc, argv); |
QApplication a(argc, argv); |
||||
qRegisterMetaType<QHash<QByteArray,QStringList>>("QHash<QByteArray,QStringList>"); |
qRegisterMetaType<QHash<QByteArray,QStringList>>("QHash<QByteArray,QStringList>"); |
||||
Widget w; |
MainWindow w; |
||||
w.show(); |
w.show(); |
||||
return QApplication::exec(); |
return QApplication::exec(); |
||||
} |
} |
||||
|
@ -0,0 +1,113 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<ui version="4.0"> |
||||
|
<class>MainWindow</class> |
||||
|
<widget class="QMainWindow" name="MainWindow"> |
||||
|
<property name="geometry"> |
||||
|
<rect> |
||||
|
<x>0</x> |
||||
|
<y>0</y> |
||||
|
<width>628</width> |
||||
|
<height>474</height> |
||||
|
</rect> |
||||
|
</property> |
||||
|
<property name="windowTitle"> |
||||
|
<string>MainWindow</string> |
||||
|
</property> |
||||
|
<widget class="QWidget" name="shadowWidget"> |
||||
|
<property name="sizePolicy"> |
||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
||||
|
<horstretch>0</horstretch> |
||||
|
<verstretch>0</verstretch> |
||||
|
</sizepolicy> |
||||
|
</property> |
||||
|
<layout class="QGridLayout" name="gridLayout_8"> |
||||
|
<item row="0" column="0"> |
||||
|
<widget class="QWidget" name="widget" native="true"> |
||||
|
<property name="sizePolicy"> |
||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
||||
|
<horstretch>0</horstretch> |
||||
|
<verstretch>0</verstretch> |
||||
|
</sizepolicy> |
||||
|
</property> |
||||
|
<layout class="QGridLayout" name="gridLayout_5"> |
||||
|
<item row="1" column="0"> |
||||
|
<widget class="QGroupBox" name="groupBox_2"> |
||||
|
<property name="title"> |
||||
|
<string>目录重复文件检测</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
<layout class="QGridLayout" name="gridLayout_7"> |
||||
|
<item row="2" column="0"> |
||||
|
<widget class="QProgressBar" name="progressBar"> |
||||
|
<property name="value"> |
||||
|
<number>0</number> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="1" column="0"> |
||||
|
<layout class="QHBoxLayout" name="horizontalLayout"> |
||||
|
<item> |
||||
|
<widget class="QListWidget" name="listWidget"/> |
||||
|
</item> |
||||
|
<item> |
||||
|
<widget class="QListWidget" name="listWidget_2"> |
||||
|
<property name="contextMenuPolicy"> |
||||
|
<enum>Qt::CustomContextMenu</enum> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</item> |
||||
|
<item row="0" column="0"> |
||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
||||
|
<item> |
||||
|
<widget class="QPushButton" name="btnSelectDir"> |
||||
|
<property name="text"> |
||||
|
<string>选择目录</string> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item> |
||||
|
<widget class="QLineEdit" name="lineDIrShow"/> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
</item> |
||||
|
<item row="0" column="0"> |
||||
|
<widget class="QGroupBox" name="groupBox"> |
||||
|
<property name="layoutDirection"> |
||||
|
<enum>Qt::LeftToRight</enum> |
||||
|
</property> |
||||
|
<property name="title"> |
||||
|
<string>文件Md5计算</string> |
||||
|
</property> |
||||
|
<property name="alignment"> |
||||
|
<set>Qt::AlignCenter</set> |
||||
|
</property> |
||||
|
<layout class="QGridLayout" name="gridLayout_6"> |
||||
|
<item row="0" column="1"> |
||||
|
<widget class="QLineEdit" name="leMd5Show"/> |
||||
|
</item> |
||||
|
<item row="0" column="0"> |
||||
|
<widget class="QPushButton" name="btnSelectFile"> |
||||
|
<property name="text"> |
||||
|
<string>选择文件</string> |
||||
|
</property> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
</item> |
||||
|
</layout> |
||||
|
</widget> |
||||
|
</widget> |
||||
|
<resources/> |
||||
|
<connections/> |
||||
|
</ui> |
@ -1,419 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<ui version="4.0"> |
|
||||
<class>Widget</class> |
|
||||
<widget class="QWidget" name="Widget"> |
|
||||
<property name="geometry"> |
|
||||
<rect> |
|
||||
<x>0</x> |
|
||||
<y>0</y> |
|
||||
<width>800</width> |
|
||||
<height>600</height> |
|
||||
</rect> |
|
||||
</property> |
|
||||
<property name="windowTitle"> |
|
||||
<string>Widget</string> |
|
||||
</property> |
|
||||
<layout class="QGridLayout" name="layoutMain"> |
|
||||
<property name="leftMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<property name="topMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<property name="rightMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<property name="bottomMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<item row="0" column="0"> |
|
||||
<widget class="QWidget" name="shadowWidget" native="true"> |
|
||||
<property name="styleSheet"> |
|
||||
<string notr="true">#shadowWidget{ |
|
||||
background-color: rgb(255, 255, 255); |
|
||||
border-radius: 5px; |
|
||||
} |
|
||||
</string> |
|
||||
</property> |
|
||||
<layout class="QGridLayout" name="gridLayout_2"> |
|
||||
<property name="leftMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<property name="topMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<property name="rightMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<property name="bottomMargin"> |
|
||||
<number>0</number> |
|
||||
</property> |
|
||||
<property name="spacing"> |
|
||||
<number>0</number> |
|
||||
</property> |
|
||||
<item row="0" column="0"> |
|
||||
<layout class="QVBoxLayout" name="verticalLayout"> |
|
||||
<property name="spacing"> |
|
||||
<number>0</number> |
|
||||
</property> |
|
||||
<property name="topMargin"> |
|
||||
<number>9</number> |
|
||||
</property> |
|
||||
<item> |
|
||||
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
||||
<property name="spacing"> |
|
||||
<number>0</number> |
|
||||
</property> |
|
||||
<property name="leftMargin"> |
|
||||
<number>0</number> |
|
||||
</property> |
|
||||
<item> |
|
||||
<widget class="QLabel" name="labelTitle"> |
|
||||
<property name="sizePolicy"> |
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
|
||||
<horstretch>0</horstretch> |
|
||||
<verstretch>0</verstretch> |
|
||||
</sizepolicy> |
|
||||
</property> |
|
||||
<property name="font"> |
|
||||
<font> |
|
||||
<family>微软雅黑</family> |
|
||||
<pointsize>14</pointsize> |
|
||||
</font> |
|
||||
</property> |
|
||||
<property name="text"> |
|
||||
<string> 重复文件检测工具</string> |
|
||||
</property> |
|
||||
<property name="alignment"> |
|
||||
<set>Qt::AlignCenter</set> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QPushButton" name="btnMin"> |
|
||||
<property name="minimumSize"> |
|
||||
<size> |
|
||||
<width>36</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="maximumSize"> |
|
||||
<size> |
|
||||
<width>36</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="font"> |
|
||||
<font> |
|
||||
<pointsize>14</pointsize> |
|
||||
<weight>50</weight> |
|
||||
<bold>false</bold> |
|
||||
</font> |
|
||||
</property> |
|
||||
<property name="styleSheet"> |
|
||||
<string notr="true">QPushButton |
|
||||
{ |
|
||||
border:none; |
|
||||
} |
|
||||
|
|
||||
QPushButton:hover |
|
||||
{ |
|
||||
background-color: rgb(232, 232, 232); |
|
||||
} |
|
||||
QPushButton:pressed |
|
||||
{ |
|
||||
background-color: rgb(162, 162, 162); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
</string> |
|
||||
</property> |
|
||||
<property name="text"> |
|
||||
<string/> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QPushButton" name="btnMin_2"> |
|
||||
<property name="enabled"> |
|
||||
<bool>false</bool> |
|
||||
</property> |
|
||||
<property name="minimumSize"> |
|
||||
<size> |
|
||||
<width>30</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="maximumSize"> |
|
||||
<size> |
|
||||
<width>30</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="font"> |
|
||||
<font> |
|
||||
<pointsize>14</pointsize> |
|
||||
<weight>50</weight> |
|
||||
<bold>false</bold> |
|
||||
</font> |
|
||||
</property> |
|
||||
<property name="styleSheet"> |
|
||||
<string notr="true">QPushButton |
|
||||
{ |
|
||||
border:none; |
|
||||
} |
|
||||
|
|
||||
QPushButton:hover |
|
||||
{ |
|
||||
background-color: rgb(232, 232, 232); |
|
||||
} |
|
||||
QPushButton:pressed |
|
||||
{ |
|
||||
background-color: rgb(162, 162, 162); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
</string> |
|
||||
</property> |
|
||||
<property name="text"> |
|
||||
<string/> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QPushButton" name="btnMax"> |
|
||||
<property name="minimumSize"> |
|
||||
<size> |
|
||||
<width>36</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="maximumSize"> |
|
||||
<size> |
|
||||
<width>36</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="font"> |
|
||||
<font> |
|
||||
<pointsize>14</pointsize> |
|
||||
<weight>50</weight> |
|
||||
<bold>false</bold> |
|
||||
</font> |
|
||||
</property> |
|
||||
<property name="styleSheet"> |
|
||||
<string notr="true">QPushButton |
|
||||
{ |
|
||||
border:none; |
|
||||
} |
|
||||
|
|
||||
QPushButton:hover |
|
||||
{ |
|
||||
background-color: rgb(232, 232, 232); |
|
||||
} |
|
||||
QPushButton:pressed |
|
||||
{ |
|
||||
background-color: rgb(162, 162, 162); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
</string> |
|
||||
</property> |
|
||||
<property name="text"> |
|
||||
<string/> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QPushButton" name="btnMin_3"> |
|
||||
<property name="enabled"> |
|
||||
<bool>false</bool> |
|
||||
</property> |
|
||||
<property name="minimumSize"> |
|
||||
<size> |
|
||||
<width>30</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="maximumSize"> |
|
||||
<size> |
|
||||
<width>30</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="font"> |
|
||||
<font> |
|
||||
<pointsize>14</pointsize> |
|
||||
<weight>50</weight> |
|
||||
<bold>false</bold> |
|
||||
</font> |
|
||||
</property> |
|
||||
<property name="styleSheet"> |
|
||||
<string notr="true">QPushButton |
|
||||
{ |
|
||||
border:none; |
|
||||
} |
|
||||
|
|
||||
QPushButton:hover |
|
||||
{ |
|
||||
background-color: rgb(232, 232, 232); |
|
||||
} |
|
||||
QPushButton:pressed |
|
||||
{ |
|
||||
background-color: rgb(162, 162, 162); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
</string> |
|
||||
</property> |
|
||||
<property name="text"> |
|
||||
<string/> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QPushButton" name="btnClose"> |
|
||||
<property name="minimumSize"> |
|
||||
<size> |
|
||||
<width>36</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="maximumSize"> |
|
||||
<size> |
|
||||
<width>36</width> |
|
||||
<height>36</height> |
|
||||
</size> |
|
||||
</property> |
|
||||
<property name="font"> |
|
||||
<font> |
|
||||
<pointsize>14</pointsize> |
|
||||
<weight>50</weight> |
|
||||
<bold>false</bold> |
|
||||
</font> |
|
||||
</property> |
|
||||
<property name="styleSheet"> |
|
||||
<string notr="true">QPushButton |
|
||||
{ |
|
||||
border:none; |
|
||||
border-top-right-radius: 5px; |
|
||||
} |
|
||||
|
|
||||
QPushButton:hover |
|
||||
{ |
|
||||
background-color: rgb(253, 0, 0); |
|
||||
} |
|
||||
QPushButton:pressed |
|
||||
{ |
|
||||
background-color: rgb(211, 0, 0); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
</string> |
|
||||
</property> |
|
||||
<property name="text"> |
|
||||
<string/> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QWidget" name="widget" native="true"> |
|
||||
<property name="sizePolicy"> |
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
|
||||
<horstretch>0</horstretch> |
|
||||
<verstretch>0</verstretch> |
|
||||
</sizepolicy> |
|
||||
</property> |
|
||||
<layout class="QGridLayout" name="gridLayout_4"> |
|
||||
<item row="0" column="0"> |
|
||||
<widget class="QGroupBox" name="groupBox"> |
|
||||
<property name="layoutDirection"> |
|
||||
<enum>Qt::LeftToRight</enum> |
|
||||
</property> |
|
||||
<property name="title"> |
|
||||
<string>文件Md5计算</string> |
|
||||
</property> |
|
||||
<property name="alignment"> |
|
||||
<set>Qt::AlignCenter</set> |
|
||||
</property> |
|
||||
<layout class="QGridLayout" name="gridLayout"> |
|
||||
<item row="0" column="0"> |
|
||||
<widget class="QPushButton" name="btnSelectFile"> |
|
||||
<property name="text"> |
|
||||
<string>选择文件</string> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item row="0" column="1"> |
|
||||
<widget class="QLineEdit" name="leMd5Show"/> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item row="1" column="0"> |
|
||||
<widget class="QGroupBox" name="groupBox_2"> |
|
||||
<property name="title"> |
|
||||
<string>目录重复文件检测</string> |
|
||||
</property> |
|
||||
<property name="alignment"> |
|
||||
<set>Qt::AlignCenter</set> |
|
||||
</property> |
|
||||
<layout class="QGridLayout" name="gridLayout_3"> |
|
||||
<item row="0" column="0"> |
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
||||
<item> |
|
||||
<widget class="QPushButton" name="btnSelectDir"> |
|
||||
<property name="text"> |
|
||||
<string>选择目录</string> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QLineEdit" name="lineDIrShow"/> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</item> |
|
||||
<item row="1" column="0"> |
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
||||
<item> |
|
||||
<widget class="QListWidget" name="listWidget"/> |
|
||||
</item> |
|
||||
<item> |
|
||||
<widget class="QListWidget" name="listWidget_2"> |
|
||||
<property name="contextMenuPolicy"> |
|
||||
<enum>Qt::CustomContextMenu</enum> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</item> |
|
||||
<item row="2" column="0"> |
|
||||
<widget class="QProgressBar" name="progressBar"> |
|
||||
<property name="value"> |
|
||||
<number>0</number> |
|
||||
</property> |
|
||||
</widget> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</widget> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</widget> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</widget> |
|
||||
</item> |
|
||||
</layout> |
|
||||
</widget> |
|
||||
<resources/> |
|
||||
<connections/> |
|
||||
</ui> |
|