feat: 新增系统时间时分秒修改
parent
2b3f8d699a
commit
b65da15829
@ -0,0 +1 @@
|
|||||||
|
build/
|
@ -0,0 +1,23 @@
|
|||||||
|
QMAKE_CXX.QT_COMPILER_STDCXX = 199711L
|
||||||
|
QMAKE_CXX.QMAKE_MSC_VER = 1941
|
||||||
|
QMAKE_CXX.QMAKE_MSC_FULL_VER = 194134120
|
||||||
|
QMAKE_CXX.COMPILER_MACROS = \
|
||||||
|
QT_COMPILER_STDCXX \
|
||||||
|
QMAKE_MSC_VER \
|
||||||
|
QMAKE_MSC_FULL_VER
|
||||||
|
QMAKE_CXX.INCDIRS = \
|
||||||
|
"D:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.41.34120\\include" \
|
||||||
|
"D:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.41.34120\\ATLMFC\\include" \
|
||||||
|
"D:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Auxiliary\\VS\\include" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um"
|
||||||
|
QMAKE_CXX.LIBDIRS = \
|
||||||
|
"D:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.41.34120\\ATLMFC\\lib\\x64" \
|
||||||
|
"D:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.41.34120\\lib\\x64" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.22621.0\\ucrt\\x64" \
|
||||||
|
"C:\\Program Files (x86)\\Windows Kits\\10\\\\lib\\10.0.22621.0\\\\um\\x64"
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Form Files">
|
||||||
|
<UniqueIdentifier>{99349809-55BA-4b9d-BF79-8FDBB0286EB3}</UniqueIdentifier>
|
||||||
|
<Extensions>ui</Extensions>
|
||||||
|
<ParseFiles>false</ParseFiles>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Form Files">
|
||||||
|
<UniqueIdentifier>{99349809-55BA-4b9d-BF79-8FDBB0286EB3}</UniqueIdentifier>
|
||||||
|
<Extensions>ui</Extensions>
|
||||||
|
<ParseFiles>false</ParseFiles>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Generated Files">
|
||||||
|
<UniqueIdentifier>{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cxx;moc;h;def;odl;idl;res;</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Generated Files">
|
||||||
|
<UniqueIdentifier>{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cxx;moc;h;def;odl;idl;res;</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="main.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="mainwindow.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<QtMoc Include="mainwindow.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</QtMoc>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<CustomBuild Include="debug\moc_predefs.h.cbt">
|
||||||
|
<Filter>Generated Files</Filter>
|
||||||
|
</CustomBuild>
|
||||||
|
<CustomBuild Include="release\moc_predefs.h.cbt">
|
||||||
|
<Filter>Generated Files</Filter>
|
||||||
|
</CustomBuild>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<QtUic Include="mainwindow.ui">
|
||||||
|
<Filter>Form Files</Filter>
|
||||||
|
</QtUic>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<QtTouchProperty>
|
||||||
|
</QtTouchProperty>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<QtTouchProperty>
|
||||||
|
</QtTouchProperty>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,2 @@
|
|||||||
|
chcp 65001
|
||||||
|
"nmake.exe" %*
|
@ -0,0 +1,128 @@
|
|||||||
|
/********************************************************************************
|
||||||
|
** Form generated from reading UI file 'mainwindow.ui'
|
||||||
|
**
|
||||||
|
** Created by: Qt User Interface Compiler version 5.15.2
|
||||||
|
**
|
||||||
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
|
#ifndef UI_MAINWINDOW_H
|
||||||
|
#define UI_MAINWINDOW_H
|
||||||
|
|
||||||
|
#include <QtCore/QVariant>
|
||||||
|
#include <QtWidgets/QApplication>
|
||||||
|
#include <QtWidgets/QLabel>
|
||||||
|
#include <QtWidgets/QMainWindow>
|
||||||
|
#include <QtWidgets/QPushButton>
|
||||||
|
#include <QtWidgets/QSpinBox>
|
||||||
|
#include <QtWidgets/QWidget>
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
class Ui_MainWindow
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
QWidget *centralwidget;
|
||||||
|
QPushButton *openDirBtn;
|
||||||
|
QLabel *label;
|
||||||
|
QSpinBox *yearSpinBox;
|
||||||
|
QLabel *label_2;
|
||||||
|
QSpinBox *monthSpinBox;
|
||||||
|
QSpinBox *daySpinBox;
|
||||||
|
QLabel *label_3;
|
||||||
|
QPushButton *startModifyBtn;
|
||||||
|
QLabel *label_4;
|
||||||
|
QLabel *label_5;
|
||||||
|
QSpinBox *secondSpinBox;
|
||||||
|
QSpinBox *hourSpinBox;
|
||||||
|
QSpinBox *minuteSpinBox;
|
||||||
|
QLabel *label_6;
|
||||||
|
|
||||||
|
void setupUi(QMainWindow *MainWindow)
|
||||||
|
{
|
||||||
|
if (MainWindow->objectName().isEmpty())
|
||||||
|
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
|
||||||
|
MainWindow->resize(404, 181);
|
||||||
|
centralwidget = new QWidget(MainWindow);
|
||||||
|
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||||
|
openDirBtn = new QPushButton(centralwidget);
|
||||||
|
openDirBtn->setObjectName(QString::fromUtf8("openDirBtn"));
|
||||||
|
openDirBtn->setGeometry(QRect(80, 20, 92, 28));
|
||||||
|
label = new QLabel(centralwidget);
|
||||||
|
label->setObjectName(QString::fromUtf8("label"));
|
||||||
|
label->setGeometry(QRect(20, 70, 31, 31));
|
||||||
|
yearSpinBox = new QSpinBox(centralwidget);
|
||||||
|
yearSpinBox->setObjectName(QString::fromUtf8("yearSpinBox"));
|
||||||
|
yearSpinBox->setGeometry(QRect(50, 70, 50, 28));
|
||||||
|
yearSpinBox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons);
|
||||||
|
label_2 = new QLabel(centralwidget);
|
||||||
|
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||||
|
label_2->setGeometry(QRect(120, 70, 31, 31));
|
||||||
|
monthSpinBox = new QSpinBox(centralwidget);
|
||||||
|
monthSpinBox->setObjectName(QString::fromUtf8("monthSpinBox"));
|
||||||
|
monthSpinBox->setGeometry(QRect(150, 70, 50, 28));
|
||||||
|
monthSpinBox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons);
|
||||||
|
monthSpinBox->setMaximum(12);
|
||||||
|
daySpinBox = new QSpinBox(centralwidget);
|
||||||
|
daySpinBox->setObjectName(QString::fromUtf8("daySpinBox"));
|
||||||
|
daySpinBox->setGeometry(QRect(250, 70, 50, 28));
|
||||||
|
daySpinBox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons);
|
||||||
|
daySpinBox->setMaximum(31);
|
||||||
|
label_3 = new QLabel(centralwidget);
|
||||||
|
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||||
|
label_3->setGeometry(QRect(220, 70, 31, 31));
|
||||||
|
startModifyBtn = new QPushButton(centralwidget);
|
||||||
|
startModifyBtn->setObjectName(QString::fromUtf8("startModifyBtn"));
|
||||||
|
startModifyBtn->setGeometry(QRect(200, 20, 92, 28));
|
||||||
|
label_4 = new QLabel(centralwidget);
|
||||||
|
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||||
|
label_4->setGeometry(QRect(220, 110, 31, 31));
|
||||||
|
label_5 = new QLabel(centralwidget);
|
||||||
|
label_5->setObjectName(QString::fromUtf8("label_5"));
|
||||||
|
label_5->setGeometry(QRect(20, 110, 31, 31));
|
||||||
|
secondSpinBox = new QSpinBox(centralwidget);
|
||||||
|
secondSpinBox->setObjectName(QString::fromUtf8("secondSpinBox"));
|
||||||
|
secondSpinBox->setGeometry(QRect(250, 110, 50, 28));
|
||||||
|
secondSpinBox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons);
|
||||||
|
secondSpinBox->setMaximum(31);
|
||||||
|
hourSpinBox = new QSpinBox(centralwidget);
|
||||||
|
hourSpinBox->setObjectName(QString::fromUtf8("hourSpinBox"));
|
||||||
|
hourSpinBox->setGeometry(QRect(50, 110, 50, 28));
|
||||||
|
hourSpinBox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons);
|
||||||
|
minuteSpinBox = new QSpinBox(centralwidget);
|
||||||
|
minuteSpinBox->setObjectName(QString::fromUtf8("minuteSpinBox"));
|
||||||
|
minuteSpinBox->setGeometry(QRect(150, 110, 50, 28));
|
||||||
|
minuteSpinBox->setButtonSymbols(QAbstractSpinBox::ButtonSymbols::NoButtons);
|
||||||
|
minuteSpinBox->setMaximum(12);
|
||||||
|
label_6 = new QLabel(centralwidget);
|
||||||
|
label_6->setObjectName(QString::fromUtf8("label_6"));
|
||||||
|
label_6->setGeometry(QRect(120, 110, 31, 31));
|
||||||
|
MainWindow->setCentralWidget(centralwidget);
|
||||||
|
|
||||||
|
retranslateUi(MainWindow);
|
||||||
|
|
||||||
|
QMetaObject::connectSlotsByName(MainWindow);
|
||||||
|
} // setupUi
|
||||||
|
|
||||||
|
void retranslateUi(QMainWindow *MainWindow)
|
||||||
|
{
|
||||||
|
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
|
||||||
|
openDirBtn->setText(QCoreApplication::translate("MainWindow", "\346\211\223\345\274\200\346\226\207\344\273\266\345\244\271", nullptr));
|
||||||
|
label->setText(QCoreApplication::translate("MainWindow", "\345\271\264\357\274\232", nullptr));
|
||||||
|
label_2->setText(QCoreApplication::translate("MainWindow", "\346\234\210\357\274\232", nullptr));
|
||||||
|
label_3->setText(QCoreApplication::translate("MainWindow", "\346\227\245\357\274\232", nullptr));
|
||||||
|
startModifyBtn->setText(QCoreApplication::translate("MainWindow", "\345\274\200\345\247\213\345\244\204\347\220\206", nullptr));
|
||||||
|
label_4->setText(QCoreApplication::translate("MainWindow", "\347\247\222\357\274\232", nullptr));
|
||||||
|
label_5->setText(QCoreApplication::translate("MainWindow", "\346\227\266\357\274\232", nullptr));
|
||||||
|
label_6->setText(QCoreApplication::translate("MainWindow", "\345\210\206\357\274\232", nullptr));
|
||||||
|
} // retranslateUi
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class MainWindow: public Ui_MainWindow {};
|
||||||
|
} // namespace Ui
|
||||||
|
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
#endif // UI_MAINWINDOW_H
|
Loading…
Reference in New Issue