Compare commits
2 Commits
v2.0
...
v2.0-stabl
| Author | SHA1 | Date | |
|---|---|---|---|
| 694f182918 | |||
| 8b8b70c671 |
BIN
appicon.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
@@ -2,6 +2,7 @@
|
||||
#include "ui_frmalbum.h"
|
||||
#include <QUrl>
|
||||
|
||||
int FrmAlbum::m_copyType = 0;
|
||||
|
||||
FrmAlbum::FrmAlbum(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
@@ -13,53 +14,168 @@ FrmAlbum::~FrmAlbum()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
// QSet<QString> FrmAlbum::getUrlSet()
|
||||
// {
|
||||
// return m_selectedImageSet;
|
||||
// }
|
||||
|
||||
int FrmAlbum::getCopyType()
|
||||
{
|
||||
return m_copyType;
|
||||
}
|
||||
|
||||
void FrmAlbum::slot_updateImage()
|
||||
{
|
||||
QList<QUrl> urls = {
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/20250320201317.png"),
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/EDH386.jpeg"),
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/20250321103557.png"),
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/logo512.png")
|
||||
};
|
||||
|
||||
picWidgetList.clear();
|
||||
panelWidget->clearWidgets();
|
||||
QList<QUrl> urls = ImageManager::instance()->getImageUrls(FileConfigDecode::getInstance()->getAddress(),
|
||||
FileConfigDecode::getInstance()->getUserName());
|
||||
qDebug() <<urls.size();
|
||||
foreach (const QUrl& u, urls) {
|
||||
FrmImgShow* widget = new FrmImgShow(this);
|
||||
connect(widget, &FrmImgShow::signal_imageSelected, [this](const QString& url){
|
||||
m_selectedImageSet.insert(url);
|
||||
});
|
||||
connect(widget, &FrmImgShow::signal_imageUnselected, [this](const QString& url){
|
||||
m_selectedImageSet.remove(url);
|
||||
});
|
||||
|
||||
connect(widget, &FrmImgShow::signal_imageDelete, this, &FrmAlbum::slot_updateImage);
|
||||
|
||||
widget->loadImage(u);
|
||||
picWidgetList.push_front(widget);
|
||||
picWidgetList.push_back(widget);
|
||||
|
||||
// panelWidget->setWidget(picWidgetList, 3);
|
||||
}
|
||||
panelWidget->setWidget(picWidgetList, 4);
|
||||
panelWidget->setSpace(15);
|
||||
|
||||
}
|
||||
|
||||
void FrmAlbum::initForm()
|
||||
{
|
||||
layout = new QHBoxLayout(this);
|
||||
|
||||
layout = new QVBoxLayout(this);
|
||||
setLayout(layout);
|
||||
panelWidget = new PanelWidget(this);
|
||||
panelWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
panelWidget->setStyleSheet("border:1px solid white;");
|
||||
panelWidget->setSpace(5);
|
||||
layout->addWidget(panelWidget);
|
||||
|
||||
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->setSpacing(0);
|
||||
this->setLayout(layout);
|
||||
|
||||
panelWidget->setObjectName("widget");
|
||||
panelWidget->setStyleSheet("background-color: rgb(63, 60, 55)");
|
||||
// panelWidget->setStyleSheet("background-color: #FFFFFF");
|
||||
panelWidget->setAutoHeight(false);
|
||||
panelWidget->setAutoWidth(false);
|
||||
panelWidget->setAutoHeight(false);
|
||||
panelWidget->setAutoWidth(false);
|
||||
|
||||
btnCopy = new QPushButton;
|
||||
btnCopy->setText("复制");
|
||||
btnCopy->setCursor(Qt::PointingHandCursor);
|
||||
btnCopy->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
btnCopy->setStyleSheet("height:25px;width:70px;background-color:#1B9EF3;color:white;border-style:none;border-radius:8px");
|
||||
connect(btnCopy, &QPushButton::clicked, [this](){
|
||||
QString clipStr = "";
|
||||
foreach (QString s, m_selectedImageSet) {
|
||||
switch (cbbCopyType->currentIndex()) {
|
||||
case 0:
|
||||
{
|
||||
QString curStr = QString("").arg(s);
|
||||
curStr += "\n";
|
||||
clipStr += curStr;
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
QString curStr = QString("%1").arg(s);
|
||||
curStr += "\n";
|
||||
clipStr += curStr;
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
QString curStr = QString("<img src=\"%1\"/>").arg(s);
|
||||
curStr += "\n";
|
||||
clipStr += curStr;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
QString curStr = QString("[IMG]%1[/IMG]").arg(s);
|
||||
curStr += "\n";
|
||||
clipStr += curStr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
clipboard->setText(clipStr);
|
||||
});
|
||||
|
||||
btnDelete = new QPushButton;
|
||||
btnDelete->setText("删除");
|
||||
btnDelete->setCursor(Qt::PointingHandCursor);
|
||||
btnDelete->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
btnDelete->setStyleSheet("height:25px;width:70px;background-color:#F15140;color:white;border-style:none;border-radius:8px");
|
||||
|
||||
btnSelectAll = new QPushButton;
|
||||
btnSelectAll->setText("全选");
|
||||
btnSelectAll->setCursor(Qt::PointingHandCursor);
|
||||
btnSelectAll->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
btnSelectAll->setStyleSheet("height:25px;width:70px;background-color:#44B363;color:white;border-style:none;border-radius:8px");
|
||||
|
||||
cbbCopyType = new QComboBox;
|
||||
cbbCopyType->setCursor(Qt::PointingHandCursor);
|
||||
cbbCopyType->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
cbbCopyType->setStyleSheet("height:25px;width:300;background-color:white;padding-left:16px;");
|
||||
|
||||
QList<QString> copyTypeList{"Markdown", "URL", "HTML", "UBB"};
|
||||
cbbCopyType->addItems(copyTypeList);
|
||||
|
||||
connect(cbbCopyType, &QComboBox::currentIndexChanged, [this](int index){
|
||||
m_copyType = index;
|
||||
});
|
||||
|
||||
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
menuLayout = new QHBoxLayout();
|
||||
menuLayout->setContentsMargins(0, 0, 0, 0);
|
||||
menuLayout->setSpacing(8);
|
||||
menuLayout->addWidget(cbbCopyType);
|
||||
menuLayout->addWidget(btnCopy);
|
||||
menuLayout->addWidget(btnDelete);
|
||||
menuLayout->addWidget(btnSelectAll);
|
||||
menuLayout->addSpacerItem(spacerItem);
|
||||
|
||||
layout->addLayout(menuLayout);
|
||||
layout->addWidget(panelWidget);
|
||||
layout->setSpacing(6);
|
||||
// qDebug() << ui->widget;
|
||||
|
||||
QList<QUrl> urls = {
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/20250320201317.png"),
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/EDH386.jpeg"),
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/20250321103557.png"),
|
||||
QUrl("https://imagehyj.oss-cn-hangzhou.aliyuncs.com/blog/logo512.png")
|
||||
};
|
||||
connect(TCHttpService::getInstance(), &TCHttpService::signal_loginSuc, [this](){
|
||||
// qDebug() <<"login success";
|
||||
QList<QUrl> urls = ImageManager::instance()->getImageUrls(FileConfigDecode::getInstance()->getAddress(),
|
||||
FileConfigDecode::getInstance()->getUserName());
|
||||
|
||||
foreach (const QUrl& u, urls) {
|
||||
FrmImgShow* widget = new FrmImgShow(this);
|
||||
widget->loadImage(u);
|
||||
picWidgetList.push_front(widget);
|
||||
}
|
||||
foreach (const QUrl& u, urls) {
|
||||
FrmImgShow* widget = new FrmImgShow(this);
|
||||
connect(widget, &FrmImgShow::signal_imageSelected, [this](const QString& url){
|
||||
m_selectedImageSet.insert(url);
|
||||
});
|
||||
connect(widget, &FrmImgShow::signal_imageUnselected, [this](const QString& url){
|
||||
m_selectedImageSet.remove(url);
|
||||
});
|
||||
widget->loadImage(u);
|
||||
picWidgetList.push_front(widget);
|
||||
|
||||
panelWidget->setWidget(picWidgetList, 4);
|
||||
panelWidget->setSpace(15);
|
||||
// panelWidget->setWidget(picWidgetList, 3);
|
||||
}
|
||||
panelWidget->setWidget(picWidgetList, 4);
|
||||
panelWidget->setSpace(15);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,9 +2,14 @@
|
||||
#define FRMALBUM_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QPushButton>
|
||||
#include <QComboBox>
|
||||
#include <QSet>
|
||||
#include "panelwidget.h"
|
||||
#include "frmimgshow.h"
|
||||
#include <QHBoxLayout>
|
||||
#include "frmimgshow.h"
|
||||
#include "fileconfigdecode.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class FrmAlbum;
|
||||
@@ -18,6 +23,9 @@ public:
|
||||
explicit FrmAlbum(QWidget *parent = nullptr);
|
||||
~FrmAlbum();
|
||||
|
||||
// QSet<QString> getUrlSet();
|
||||
|
||||
static int getCopyType();
|
||||
public slots:
|
||||
void slot_updateImage();
|
||||
|
||||
@@ -25,8 +33,19 @@ private:
|
||||
Ui::FrmAlbum *ui;
|
||||
QList<QWidget*> picWidgetList;
|
||||
PanelWidget* panelWidget;
|
||||
QHBoxLayout* layout;
|
||||
QVBoxLayout* layout;
|
||||
void initForm();
|
||||
|
||||
QPushButton* btnCopy;
|
||||
QPushButton* btnDelete;
|
||||
QPushButton* btnSelectAll;
|
||||
QComboBox* cbbCopyType;
|
||||
QHBoxLayout* menuLayout;
|
||||
QSpacerItem* spacerItem;
|
||||
|
||||
QSet<QString> m_selectedImageSet;
|
||||
|
||||
static int m_copyType;
|
||||
};
|
||||
|
||||
#endif // FRMALBUM_H
|
||||
|
||||
@@ -1,37 +1,34 @@
|
||||
#include "frmimgshow.h"
|
||||
#include "frmalbum.h"
|
||||
|
||||
FrmImgShow::FrmImgShow(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
initForm();
|
||||
initSignalSlot();
|
||||
connect(TCHttpService::getInstance(), &TCHttpService::signal_imageDownloaded,
|
||||
this, [this](const QString& requestId, const QPixmap& pixmap){
|
||||
if (requestId == m_requestId) {
|
||||
setLoadingState(false);
|
||||
setImage(pixmap);
|
||||
}
|
||||
});
|
||||
|
||||
connect(TCHttpService::getInstance(), &TCHttpService::signal_downloadFailed,
|
||||
this, [this](const QString& requestId, const QString& error){
|
||||
this, [this](const QString& requestId){
|
||||
if (requestId == m_requestId) {
|
||||
setLoadingState(true);
|
||||
qDebug() << "load failed";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void FrmImgShow::loadImage(const QUrl &imageUrl)
|
||||
{
|
||||
qDebug() << "loadImage";
|
||||
m_currentUrl = imageUrl;
|
||||
m_requestId = QUuid::createUuid().toString();
|
||||
setLoadingState(true);
|
||||
qDebug() << "downlaodImage";
|
||||
TCHttpService::getInstance()->downloadImage(m_requestId, imageUrl);
|
||||
}
|
||||
|
||||
void FrmImgShow::setImage(const QPixmap &pixmap)
|
||||
{
|
||||
qDebug() << "setImage";
|
||||
// int h = pixmap.height();
|
||||
// int w = pixmap.width();
|
||||
// int sh, sw;
|
||||
@@ -46,9 +43,59 @@ void FrmImgShow::setImage(const QPixmap &pixmap)
|
||||
labImg->setPixmap(pixmap.scaled(this->labImg->width(), this->labImg->height()));
|
||||
}
|
||||
|
||||
void FrmImgShow::setLoadingState(bool loading)
|
||||
void FrmImgShow::initSignalSlot()
|
||||
{
|
||||
connect(btnCopy, &QPushButton::clicked, this, [this](){
|
||||
switch(FrmAlbum::getCopyType()) {
|
||||
case 0:
|
||||
{
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
QString mdStr = QString("").arg(m_currentUrl.toString());
|
||||
clipboard->setText(mdStr);
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
QString urlStr = m_currentUrl.toString();
|
||||
clipboard->setText(urlStr);
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
QString htmlStr = QString("<img src=\"%1\"/>").arg(m_currentUrl.toString());
|
||||
clipboard->setText(htmlStr);
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
QString ubbStr = QString("[IMG]%1[/IMG]").arg(m_currentUrl.toString());
|
||||
clipboard->setText(ubbStr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
connect(ckbSelect, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState state){
|
||||
if (state == Qt::Unchecked) {
|
||||
emit signal_imageUnselected(m_currentUrl.toString());
|
||||
}
|
||||
|
||||
if (state == Qt::Checked) {
|
||||
emit signal_imageSelected(m_currentUrl.toString());
|
||||
}
|
||||
});
|
||||
|
||||
connect(btnDelete, &QPushButton::clicked, this, [this](){
|
||||
// qDebug() <<"delete";
|
||||
QString domain = FileConfigDecode::getInstance()->getAddress();
|
||||
QString userName = FileConfigDecode::getInstance()->getUserName();
|
||||
int del_res = ImageManager::instance()->removeImageUrl(domain, userName, m_currentUrl.toString());
|
||||
// qDebug() << "del_res:" << del_res;
|
||||
emit signal_imageDelete();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +160,7 @@ void FrmImgShow::initForm()
|
||||
btnCopy->setMinimumSize(22, 22);
|
||||
btnCopy->setFlat(true);
|
||||
btnCopy->setIcon(QIcon(":/qrc/image/copy_white.png"));
|
||||
btnCopy->setCursor(Qt::PointingHandCursor);
|
||||
|
||||
btnCopy->installEventFilter(this);
|
||||
|
||||
@@ -121,14 +169,17 @@ void FrmImgShow::initForm()
|
||||
btnDelete->setFlat(true);
|
||||
btnDelete->setIcon(QIcon(":/qrc/image/delete_white.png"));
|
||||
btnDelete->installEventFilter(this);
|
||||
btnDelete->setCursor(Qt::PointingHandCursor);
|
||||
|
||||
horizenSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
hLayout = new QHBoxLayout();
|
||||
|
||||
ckbSelect = new QCheckBox();
|
||||
// ckbSelect->setMinimumSize(20, 20);
|
||||
ckbSelect->setText("");
|
||||
ckbSelect->setMinimumSize(20, 20);
|
||||
ckbSelect->setCursor(Qt::PointingHandCursor);
|
||||
// ckbSelect->setStyleSheet("border:1px solid white;border-radius:5px");
|
||||
ckbSelect->setStyleSheet("border-style:none;");
|
||||
// ckbSelect->setStyleSheet("border-style:none;background-color:green;spacing:0px;");
|
||||
|
||||
hLayout->addWidget(btnCopy);
|
||||
hLayout->addWidget(btnDelete);
|
||||
@@ -143,12 +194,13 @@ void FrmImgShow::initForm()
|
||||
|
||||
|
||||
|
||||
|
||||
// btnCopy->setIcon(QIcon(QPixmap(":/qrc/image/copy_white.png")));
|
||||
// btnDelete->setIcon(QIcon(QPixmap(":/qrc/image/delete_white.png")));
|
||||
// btnCopy->setFixedSize(32, 32);
|
||||
// btnCopy->setCursor(Qt::PointingHandCursor);
|
||||
|
||||
// setStyleSheet("background-color: #FF0000;border: 1px solid white");
|
||||
// setStyleSheet("background-color: #FF0000");
|
||||
|
||||
setFixedSize(134, 160);
|
||||
|
||||
@@ -158,6 +210,6 @@ void FrmImgShow::initForm()
|
||||
|
||||
void FrmImgShow::initWidget()
|
||||
{
|
||||
// btnCopy->installEventFilter(this);
|
||||
// btnDelete->installEventFilter(this);
|
||||
btnCopy->installEventFilter(this);
|
||||
btnDelete->installEventFilter(this);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include <QSpacerItem>
|
||||
#include <QUrl>
|
||||
#include <QCheckBox>
|
||||
#include <QClipboard>
|
||||
#include <QApplication>
|
||||
#include <QGuiApplication>
|
||||
#include "tchttpservice.h"
|
||||
|
||||
@@ -21,9 +23,10 @@ public:
|
||||
|
||||
void loadImage(const QUrl& imageUrl);
|
||||
void setImage(const QPixmap& pixmap);
|
||||
void setLoadingState(bool loading);
|
||||
|
||||
QSize sizeHint();
|
||||
void initSignalSlot();
|
||||
|
||||
virtual QSize sizeHint();
|
||||
private:
|
||||
QLabel* labImg;
|
||||
// QLabel* labLoading;
|
||||
@@ -48,6 +51,11 @@ private:
|
||||
|
||||
QString m_requestId;
|
||||
QUrl m_currentUrl;
|
||||
|
||||
signals:
|
||||
void signal_imageSelected(QString);
|
||||
void signal_imageUnselected(QString);
|
||||
void signal_imageDelete();
|
||||
};
|
||||
|
||||
#endif // FRMIMGSHOW_H
|
||||
|
||||
@@ -37,6 +37,10 @@ void FrmSetting::initForm()
|
||||
ui->schEnableSsl->enableText(false);
|
||||
ui->schEnableSsl->setAnimation(true);
|
||||
|
||||
ui->schAutoLogin->setBgColorOn(QColor("#409EFF"));
|
||||
ui->schAutoLogin->enableText(false);
|
||||
ui->schAutoLogin->setAnimation(true);
|
||||
|
||||
ui->btnServer->setCursor(Qt::PointingHandCursor);
|
||||
ui->schRename->setCursor(Qt::PointingHandCursor);
|
||||
|
||||
@@ -81,23 +85,36 @@ void FrmSetting::initWidget()
|
||||
ui->labTimeRenameClose->setStyleSheet(OPENQSS);
|
||||
}
|
||||
if (FileConfigDecode::getInstance()->getAutoCopy()) {
|
||||
ui->labEnableSsl->setStyleSheet(OPENQSS);
|
||||
ui->labEnableSsl->setStyleSheet(CLOSEQSS);
|
||||
ui->labEnableSslOpen->setStyleSheet(OPENQSS);
|
||||
ui->labEnableSslClose->setStyleSheet(CLOSEQSS);
|
||||
}
|
||||
else {
|
||||
ui->labEnableSsl->setStyleSheet(CLOSEQSS);
|
||||
ui->labEnableSsl->setStyleSheet(OPENQSS);
|
||||
ui->labEnableSslOpen->setStyleSheet(CLOSEQSS);
|
||||
ui->labEnableSslClose->setStyleSheet(OPENQSS);
|
||||
}
|
||||
if (FileConfigDecode::getInstance()->getAutoLogin()) {
|
||||
ui->labAUtoLoginOpen->setStyleSheet(OPENQSS);
|
||||
ui->labAutoLoginClose->setStyleSheet(CLOSEQSS);
|
||||
TCHttpService::getInstance()->setConfiguration(FileConfigDecode::getInstance()->getUserName(),
|
||||
FileConfigDecode::getInstance()->getPassword(),
|
||||
FileConfigDecode::getInstance()->getAddress());
|
||||
}
|
||||
else {
|
||||
ui->labAUtoLoginOpen->setStyleSheet(CLOSEQSS);
|
||||
ui->labAutoLoginClose->setStyleSheet(OPENQSS);
|
||||
}
|
||||
|
||||
ui->schRename->setChecked(FileConfigDecode::getInstance()->getRename());
|
||||
ui->schAutoSetup->setChecked(FileConfigDecode::getInstance()->getAutoSetup());
|
||||
ui->schTimeRename->setChecked(FileConfigDecode::getInstance()->getTimeRename());
|
||||
ui->schEnableSsl->setChecked(FileConfigDecode::getInstance()->getAutoCopy());
|
||||
ui->schAutoLogin->setChecked(FileConfigDecode::getInstance()->getAutoLogin());
|
||||
|
||||
connect(ui->schRename, &SwitchButton::checkedChanged, this, &FrmSetting::schRenameSlot);
|
||||
connect(ui->schAutoSetup, &SwitchButton::checkedChanged, this, &FrmSetting::schAutoSetup);
|
||||
connect(ui->schTimeRename, &SwitchButton::checkedChanged, this, &FrmSetting::schTimeRename);
|
||||
connect(ui->schEnableSsl, &SwitchButton::checkedChanged, this, &FrmSetting::schEnableSsl);
|
||||
connect(ui->schAutoLogin, &SwitchButton::checkedChanged, this, &FrmSetting::schAutoLogin);
|
||||
connect(ui->btnServer, &QPushButton::clicked, serversetting, &ServerSetting::show);
|
||||
|
||||
}
|
||||
@@ -136,6 +153,13 @@ void FrmSetting::schEnableSsl(bool checked)
|
||||
|
||||
}
|
||||
|
||||
void FrmSetting::schAutoLogin(bool checked)
|
||||
{
|
||||
FileConfigDecode::getInstance()->setAutoLogin(checked);
|
||||
ui->labAUtoLoginOpen->setStyleSheet(checked?OPENQSS:CLOSEQSS);
|
||||
ui->labAutoLoginClose->setStyleSheet(checked?CLOSEQSS:OPENQSS);
|
||||
}
|
||||
|
||||
void FrmSetting::slot_updateServerConfig(QString address, QString username, QString password)
|
||||
{
|
||||
FileConfigDecode::getInstance()->setAddress(address);
|
||||
|
||||
@@ -37,6 +37,7 @@ private slots:
|
||||
void schAutoSetup(bool checked);
|
||||
void schTimeRename(bool checked);
|
||||
void schEnableSsl(bool checked);
|
||||
void schAutoLogin(bool checked);
|
||||
|
||||
void slot_updateServerConfig(QString address, QString username, QString password);
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="labEnableSsl_2">
|
||||
<widget class="QLabel" name="lanAUtoLogin">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: rgb(255, 255, 255);</string>
|
||||
</property>
|
||||
@@ -391,14 +391,14 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labEnableSslClose_2">
|
||||
<widget class="QLabel" name="labAutoLoginClose">
|
||||
<property name="text">
|
||||
<string>关</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="SwitchButton" name="schEnableSsl_2" native="true">
|
||||
<widget class="SwitchButton" name="schAutoLogin" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -420,7 +420,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labEnableSslOpen_2">
|
||||
<widget class="QLabel" name="labAUtoLoginOpen">
|
||||
<property name="text">
|
||||
<string>开</string>
|
||||
</property>
|
||||
|
||||
@@ -47,7 +47,9 @@ void FrmUpload::slot_uploadFileSec(QString url)
|
||||
qDebug() << "slot_uploadFileSec:" << url;
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
|
||||
|
||||
QString domain = FileConfigDecode::getInstance()->getAddress();
|
||||
QString userName = FileConfigDecode::getInstance()->getUserName();
|
||||
ImageManager::instance()->addImageUrl(domain, userName, url);
|
||||
if (copyType == COPY_TYPE_MARKDOWN) {
|
||||
clipboard->setText(QString("").arg(url));
|
||||
emit signal_uploadSuccess(url);
|
||||
@@ -70,6 +72,11 @@ void FrmUpload::slot_uploadFileSec(QString url)
|
||||
|
||||
}
|
||||
|
||||
void FrmUpload::slot_progressUpdate(int v)
|
||||
{
|
||||
ui->progressBar->setValue(v);
|
||||
}
|
||||
|
||||
bool FrmUpload::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
static bool mousePressed = false;
|
||||
@@ -159,6 +166,8 @@ void FrmUpload::initWidget()
|
||||
this->setAcceptDrops(true);
|
||||
setWindowFlags(Qt::FramelessWindowHint); // 移除系统边框
|
||||
setAttribute(Qt::WA_TranslucentBackground); // 启用透明背景
|
||||
|
||||
connect(TCHttpService::getInstance(), &TCHttpService::signal_progressUpdate, this, &FrmUpload::slot_progressUpdate);
|
||||
// ui->frmUpload->setAcceptDrops(true);
|
||||
}
|
||||
|
||||
@@ -179,6 +188,7 @@ void FrmUpload::on_btnFastUpload_clicked()
|
||||
{
|
||||
// QString addDataPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
|
||||
// QString cacheDirPath = addDataPath + "/cache/";
|
||||
|
||||
QDir cacheDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
|
||||
if (!cacheDir.exists()) {
|
||||
cacheDir.mkpath(".");
|
||||
@@ -187,6 +197,7 @@ void FrmUpload::on_btnFastUpload_clicked()
|
||||
const QMimeData* mimeData = clipboard->mimeData();
|
||||
|
||||
if (mimeData->hasImage()) {
|
||||
ui->progressBar->setValue(0);
|
||||
QImage image = clipboard->image();
|
||||
if (!image.isNull()) {
|
||||
RenameType renametype = FileConfigDecode::getInstance()->getRenameType();
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void slot_uploadFileSec(QString url);
|
||||
void slot_progressUpdate(int v);
|
||||
|
||||
protected:
|
||||
virtual bool eventFilter(QObject* watched, QEvent* event);
|
||||
|
||||
@@ -162,6 +162,45 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QProgressBar" name="progressBar">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>10</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignmentFlag::AlignCenter</set>
|
||||
</property>
|
||||
<property name="textVisible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Policy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
|
||||
@@ -81,6 +81,14 @@ int PanelWidget::getColumnCount()
|
||||
return this->columnCount;
|
||||
}
|
||||
|
||||
void PanelWidget::clearWidgets()
|
||||
{
|
||||
foreach (QWidget* w, widgets) {
|
||||
delete w;
|
||||
}
|
||||
widgets.clear();
|
||||
}
|
||||
|
||||
void PanelWidget::setWidget(QList<QWidget *> widgets, int columnCount)
|
||||
{
|
||||
this->widgets = widgets;
|
||||
|
||||
@@ -60,6 +60,8 @@ public:
|
||||
|
||||
QList<QWidget *> getWidgets();
|
||||
int getColumnCount();
|
||||
void clearWidgets();
|
||||
|
||||
|
||||
public Q_SLOTS:
|
||||
void setWidget(QList<QWidget *> widgets, int columnCount);
|
||||
@@ -69,6 +71,7 @@ public Q_SLOTS:
|
||||
void setAutoWidth(bool autoWidth);
|
||||
void setAutoHeight(bool autoHeight);
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // PANELWIDGET_H
|
||||
|
||||
@@ -24,8 +24,7 @@ FileConfigDecode *FileConfigDecode::getInstance()
|
||||
|
||||
FileConfigDecode::~FileConfigDecode()
|
||||
{
|
||||
// updateFile();
|
||||
// qDebug() << "write:" << autoSetup << rename << timeRename << autoCopy;
|
||||
updateFile();
|
||||
}
|
||||
|
||||
QString FileConfigDecode::getAddress()
|
||||
@@ -73,23 +72,27 @@ RenameType FileConfigDecode::getRenameType()
|
||||
return renameType;
|
||||
}
|
||||
|
||||
bool FileConfigDecode::getAutoLogin()
|
||||
{
|
||||
return autoLogin;
|
||||
}
|
||||
|
||||
void FileConfigDecode::setAddress(QString value)
|
||||
{
|
||||
this->address = value;
|
||||
// updateFile();
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::setPort(quint16 value)
|
||||
{
|
||||
this->port = value;
|
||||
// updateFile();
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::setAutoSetup(bool value)
|
||||
{
|
||||
this->autoSetup = value;
|
||||
updateFile();
|
||||
// updateFile();
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::setRename(bool value)
|
||||
@@ -101,13 +104,13 @@ void FileConfigDecode::setRename(bool value)
|
||||
else {
|
||||
renameType = (renameType == RENAME_TYPE_TIME) ? RENAME_TYPE_TIME : RENAME_TYPE_NORMAL;
|
||||
}
|
||||
qDebug() << renameType;
|
||||
updateFile();
|
||||
// updateFile();
|
||||
// qDebug() << renameType;
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::setTimeRename(bool value, int flag)
|
||||
{
|
||||
qDebug() << value;
|
||||
this->timeRename = value;
|
||||
if (value) {
|
||||
renameType = RENAME_TYPE_TIME;
|
||||
@@ -120,16 +123,14 @@ void FileConfigDecode::setTimeRename(bool value, int flag)
|
||||
if (!value && flag == 0) {
|
||||
renameType = RENAME_TYPE_NONE;
|
||||
}
|
||||
qDebug() << renameType;
|
||||
updateFile();
|
||||
// updateFile();
|
||||
// qDebug() << renameType;
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::setAutoCopy(bool value)
|
||||
{
|
||||
this->autoCopy = value;
|
||||
updateFile();
|
||||
// updateFile();
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::setUserName(QString username)
|
||||
@@ -144,8 +145,14 @@ void FileConfigDecode::setPassword(QString password)
|
||||
updateFile();
|
||||
}
|
||||
|
||||
void FileConfigDecode::fileWrite(QString path, QString address, bool autosetup,
|
||||
bool rename, bool timerename, bool autocopy, QString username, QString password)
|
||||
void FileConfigDecode::setAutoLogin(bool value)
|
||||
{
|
||||
autoLogin = value;
|
||||
updateFile();
|
||||
}
|
||||
|
||||
|
||||
void FileConfigDecode::fileWrite(QString path)
|
||||
{
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
QSettings* config = new QSettings(path, QSettings::IniFormat);
|
||||
@@ -153,7 +160,6 @@ void FileConfigDecode::fileWrite(QString path, QString address, bool autosetup,
|
||||
QString section = QString("config");
|
||||
config->beginGroup(section);
|
||||
config->setValue("address", address);
|
||||
config->setValue("port", port);
|
||||
config->setValue("autosetup", autosetup);
|
||||
config->setValue("rename", rename);
|
||||
config->setValue("timerename", timerename);
|
||||
@@ -166,14 +172,13 @@ void FileConfigDecode::fileWrite(QString path, QString address, bool autosetup,
|
||||
QString section = QString("config");
|
||||
config->beginGroup(section);
|
||||
config->setValue("address", address);
|
||||
config->setValue("port", port);
|
||||
config->setValue("autosetup", autosetup);
|
||||
config->setValue("autosetup", autoSetup);
|
||||
config->setValue("rename", rename);
|
||||
config->setValue("timerename", timerename);
|
||||
config->setValue("autocopy", autocopy);
|
||||
config->setValue("username", username);
|
||||
config->setValue("timerename", timeRename);
|
||||
config->setValue("autocopy", autoCopy);
|
||||
config->setValue("username", userName);
|
||||
config->setValue("password", password);
|
||||
config->endGroup();
|
||||
config->setValue("autologin", autoLogin);
|
||||
delete config;
|
||||
#endif
|
||||
}
|
||||
@@ -196,12 +201,14 @@ void FileConfigDecode::initFile()
|
||||
this->autoCopy = config->value(section + "autocopy").toBool();
|
||||
this->userName = config->value(section+"username").toString();
|
||||
this->password = config->value(section+"password").toString();
|
||||
this->autoLogin = config->value(section+"autologin").toBool();
|
||||
|
||||
checkConfig();
|
||||
|
||||
this->firstCreate = false;
|
||||
}
|
||||
else {
|
||||
qDebug() << "file not exists";
|
||||
this->firstCreate = true;
|
||||
|
||||
this->address = "127.0.0.1:8080";
|
||||
@@ -211,8 +218,9 @@ void FileConfigDecode::initFile()
|
||||
this->autoCopy = false;
|
||||
this->userName = "admin";
|
||||
this->password = "admin";
|
||||
this->autoLogin = false;
|
||||
|
||||
fileWrite(addFilePath, address, autoSetup, rename, timeRename, autoCopy, userName, password);
|
||||
fileWrite(addFilePath);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,7 +243,7 @@ void FileConfigDecode::updateFile()
|
||||
QString addDataPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
|
||||
QString addFilePath = addDataPath + "/config.ini";
|
||||
|
||||
qDebug() << "write" << autoSetup << rename << timeRename << autoCopy;
|
||||
fileWrite(addFilePath, address, autoSetup, rename, timeRename, autoCopy, userName, password);
|
||||
// qDebug() << "write" << this->autoSetup << this->rename << this->timeRename << this->autoCopy;
|
||||
fileWrite(addFilePath);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
QString getUserName();
|
||||
QString getPassword();
|
||||
RenameType getRenameType();
|
||||
bool getAutoLogin();
|
||||
|
||||
void setAddress(QString value);
|
||||
void setPort(quint16 value);
|
||||
@@ -41,6 +42,7 @@ public:
|
||||
void setAutoCopy(bool value);
|
||||
void setUserName(QString username);
|
||||
void setPassword(QString password);
|
||||
void setAutoLogin(bool value);
|
||||
|
||||
void initFile();
|
||||
void updateFile();
|
||||
@@ -54,12 +56,13 @@ private:
|
||||
bool autoCopy;
|
||||
QString userName;
|
||||
QString password;
|
||||
bool autoLogin;
|
||||
|
||||
bool firstCreate;
|
||||
|
||||
RenameType renameType = RENAME_TYPE_NONE;
|
||||
|
||||
void fileWrite(QString path, QString address, bool autosetup, bool rename, bool timerename, bool autocopy, QString username, QString password);
|
||||
void fileWrite(QString path);
|
||||
|
||||
static QScopedPointer<FileConfigDecode> m_instance;
|
||||
|
||||
|
||||
@@ -50,6 +50,10 @@ void TCHttpService::apiLogin()
|
||||
qDebug() << this->m_token;
|
||||
m_isOnline = true;
|
||||
ImageManager::instance()->addDomainUser(m_domain, m_userName);
|
||||
QString stdPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
|
||||
ImageManager::instance()->initialize(stdPath + "/picpanel.db");
|
||||
|
||||
|
||||
emit signal_loginSuc();
|
||||
}
|
||||
|
||||
@@ -57,119 +61,6 @@ void TCHttpService::apiLogin()
|
||||
|
||||
}
|
||||
|
||||
#if 0
|
||||
void TCHttpService::apiMyfileCount()
|
||||
{
|
||||
|
||||
QString urlStr;
|
||||
if (m_enableSsl)
|
||||
urlStr = "https://" + m_domain + "/api/myfiles";
|
||||
else
|
||||
urlStr = "http://" + m_domain + "/api/myfiles";
|
||||
|
||||
QMap<QString, QString> headers;
|
||||
headers.insert("Content-Type", "application/json");
|
||||
|
||||
QMap<QString, QString> params;
|
||||
params.insert("cmd", "count");
|
||||
QUrl url = encodeUrl(urlStr, params);
|
||||
QJsonObject jsonObj;
|
||||
jsonObj["token"] = m_token;
|
||||
jsonObj["user"] = m_userName;
|
||||
QJsonDocument jsonDoc(jsonObj);
|
||||
QByteArray jsonData = jsonDoc.toJson();
|
||||
|
||||
QNetworkRequest request(url);
|
||||
for (auto ite = headers.constBegin(); ite != headers.constEnd(); ite++){
|
||||
request.setRawHeader(ite.key().toUtf8(), ite.value().toUtf8());
|
||||
}
|
||||
|
||||
QNetworkReply* reply = nullptr;
|
||||
reply = m_manager.post(request, jsonData);
|
||||
QObject::connect(reply, &QNetworkReply::finished, [this, reply](){
|
||||
|
||||
emit requestFinished(reply, "myfilecount");
|
||||
});
|
||||
}
|
||||
|
||||
void TCHttpService::apiMyfileNormal(int start, int count)
|
||||
{
|
||||
QString urlStr;
|
||||
if (m_enableSsl)
|
||||
urlStr = "https://" + m_domain + "/api/myfiles";
|
||||
else
|
||||
urlStr = "http://" + m_domain + "/api/myfiles";
|
||||
|
||||
QMap<QString, QString> headers;
|
||||
headers.insert("Content-Type", "application/json");
|
||||
|
||||
QMap<QString, QString> params;
|
||||
params.insert("cmd", "normal");
|
||||
|
||||
QUrl url = encodeUrl(urlStr, params);
|
||||
QNetworkRequest request(url);
|
||||
for (auto ite = headers.constBegin(); ite != headers.constEnd(); ite++){
|
||||
request.setRawHeader(ite.key().toUtf8(), ite.value().toUtf8());
|
||||
}
|
||||
|
||||
QJsonObject jsonObj;
|
||||
jsonObj["token"] = m_token;
|
||||
jsonObj["user"] = m_userName;
|
||||
jsonObj["count"] = count;
|
||||
jsonObj["start"] = start;
|
||||
|
||||
QJsonDocument jsonDoc(jsonObj);
|
||||
QByteArray jsonData = jsonDoc.toJson();
|
||||
|
||||
QNetworkReply* reply = nullptr;
|
||||
reply = m_manager.post(request, jsonData);
|
||||
connect(reply, &QNetworkReply::finished, [this, reply](){
|
||||
emit requestFinished(reply, "myfilenormal");
|
||||
});
|
||||
}
|
||||
|
||||
void TCHttpService::apiMd5(const QString& filePath)
|
||||
{
|
||||
QFile file(filePath);
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
return;
|
||||
}
|
||||
|
||||
QByteArray fileMd5;
|
||||
QCryptographicHash hash(QCryptographicHash::Md5);
|
||||
if (hash.addData(&file)) {
|
||||
fileMd5 = hash.result().toHex();
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
||||
QString urlStr;
|
||||
if (m_enableSsl)
|
||||
urlStr = "https://" + m_domain + "/api/md5";
|
||||
else
|
||||
urlStr = "http://" + m_domain + "/api/md5";
|
||||
QMap<QString, QString> headers;
|
||||
headers.insert("Content-Type", "application/json");
|
||||
QString md5Str = QString::fromUtf8(fileMd5);
|
||||
QJsonObject jsonObj;
|
||||
jsonObj["token"] = m_token;
|
||||
jsonObj["md5"] = md5Str;
|
||||
jsonObj["filename"] = QFileInfo(file).fileName();
|
||||
jsonObj["user"] = m_userName;
|
||||
file.close();
|
||||
|
||||
QJsonDocument jsonDoc(jsonObj);
|
||||
QByteArray jsonData = jsonDoc.toJson();
|
||||
QNetworkReply* reply = nullptr;
|
||||
|
||||
QNetworkRequest request(urlStr);
|
||||
reply = m_manager.post(request, jsonData);
|
||||
|
||||
QObject::connect(reply, &QNetworkReply::finished, [this, reply](){
|
||||
emit requestFinished(reply, "md5");
|
||||
});
|
||||
}
|
||||
#endif
|
||||
void TCHttpService::apiUpload(const QString &filePath)
|
||||
{
|
||||
|
||||
@@ -246,6 +137,7 @@ void TCHttpService::apiUpload(const QString &filePath)
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(reply->readAll());
|
||||
QJsonObject jsonObj = jsonDoc.object();
|
||||
QString fileUrl = jsonObj["url"].toString();
|
||||
ImageManager::instance()->addImageUrl(m_domain, m_userName, fileUrl);
|
||||
emit signal_uploadFileSec(fileUrl);
|
||||
} else {
|
||||
qDebug() << "上传失败:" << reply->errorString();
|
||||
@@ -255,153 +147,20 @@ void TCHttpService::apiUpload(const QString &filePath)
|
||||
multiPart->deleteLater();
|
||||
});
|
||||
|
||||
connect(reply, &QNetworkReply::uploadProgress, this, [](qint64 bytesSent, qint64 bytesTotal) {
|
||||
connect(reply, &QNetworkReply::uploadProgress, this, [this](qint64 bytesSent, qint64 bytesTotal) {
|
||||
if (bytesTotal > 0) {
|
||||
int progress = (bytesSent * 100) / bytesTotal;
|
||||
emit signal_progressUpdate(progress);
|
||||
qDebug() << "上传进度:" << progress << "%";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void TCHttpService::apiSharePicShare(const QString &fileName, const QString &md5)
|
||||
{
|
||||
|
||||
QString urlStr;
|
||||
if (m_enableSsl)
|
||||
urlStr = "https://" + m_domain + "/api/sharepic";
|
||||
else
|
||||
urlStr = "http://" + m_domain + "/api/sharepic";
|
||||
|
||||
QMap<QString, QString> headers;
|
||||
QMap<QString, QString> body;
|
||||
QMap<QString, QString> params;
|
||||
|
||||
headers.insert("Content-Type", "application/json");
|
||||
|
||||
QString bodyStr = QString("\"%1\":\"%2\",\"%3\":\"%4\",\"%5\":\"%6\",\"%7\":\"%8\"").arg("token").arg(m_token).
|
||||
arg("user").arg(m_userName).arg("md5").arg(md5).arg("filename").arg(fileName);
|
||||
|
||||
params.insert("cmd", "share");
|
||||
|
||||
}
|
||||
|
||||
void TCHttpService::setConfiguration(QString userName, QString firstPwd, QString domain)
|
||||
{
|
||||
this->m_domain = domain;
|
||||
this->m_userName = userName;
|
||||
this->m_firstPwd = firstPwd;
|
||||
#if 0
|
||||
connect(this, &TCHttpService::requestFinished, [this](QNetworkReply* reply, QString api){
|
||||
QByteArray rawData = reply->readAll();
|
||||
if (api == "login") {
|
||||
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(rawData);
|
||||
if (jsonDoc.isEmpty())
|
||||
return;
|
||||
QJsonObject jsonObj = jsonDoc.object();
|
||||
int code = jsonObj["code"].toInt();
|
||||
if (code == 0) {
|
||||
this->m_token = jsonObj["token"].toString();
|
||||
qDebug() << this->m_token;
|
||||
m_isOnline = true;
|
||||
emit signal_loginSuc();
|
||||
// apiMyfileCount();
|
||||
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
if (api == "myfilecount") {
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(rawData);
|
||||
if (jsonDoc.isEmpty())
|
||||
return;
|
||||
QJsonObject jsonObj = jsonDoc.object();
|
||||
int code = jsonObj["code"].toInt();
|
||||
|
||||
if (code == 0) {
|
||||
int total = jsonObj["total"].toInt();
|
||||
this->m_total = total;
|
||||
int n = total / 10 + 1;
|
||||
int pendingRequests = n;
|
||||
for (int i = 0; i < n; i++) {
|
||||
int count = (total - i * 10 >= 10) ? 10 : (total - i * 10);
|
||||
apiMyfileNormal(i*10, count);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (api == "myfilenormal") {
|
||||
static int loginCnt = 0;
|
||||
|
||||
QJsonDocument jsonDoc = QJsonDocument::fromJson(rawData);
|
||||
if (jsonDoc.isEmpty())
|
||||
return;
|
||||
QJsonObject jsonObj = jsonDoc.object();
|
||||
|
||||
int code = jsonObj["code"].toInt();
|
||||
if (code != 0)
|
||||
return;
|
||||
QJsonArray jsonArray = jsonObj["files"].toArray();
|
||||
for (const QJsonValue& value : jsonArray) {
|
||||
QJsonObject jsonObj = value.toObject();
|
||||
|
||||
QString file_name = jsonObj["file_name"].toString();
|
||||
int share_status = jsonObj["share_status"].toInt();
|
||||
QString url = jsonObj["url"].toString();
|
||||
qint64 size = jsonObj["size"].toInt();
|
||||
QString md5 = jsonObj["md5"].toString();
|
||||
|
||||
QMap<QString, file_info_t>::iterator ite;
|
||||
ite = m_fileMap.find(md5);
|
||||
if (ite == m_fileMap.end()) {
|
||||
qDebug() << file_name;
|
||||
file_info_t info;
|
||||
info.share_status = share_status;
|
||||
info.size = size;
|
||||
info.url = url;
|
||||
info.file_name = file_name;
|
||||
if (m_isOnline) {
|
||||
qDebug() << "now upload";
|
||||
emit signal_uploadFileSec(url);
|
||||
|
||||
}
|
||||
m_fileMap.insert(md5, info);
|
||||
// if (m_fileMap.size() == m_total && m_isOnline == false)
|
||||
|
||||
|
||||
}
|
||||
#if !DEBUG
|
||||
// for(auto ite = m_fileMap.constBegin(); ite != m_fileMap.constEnd(); ite++) {
|
||||
// qDebug() << "fileMap debug:" << ite.value().file_name;
|
||||
// }
|
||||
qDebug() << "fileMap size:" << m_fileMap.size();
|
||||
#endif
|
||||
}
|
||||
// if (!m_isOnline) {
|
||||
// loginCnt++;
|
||||
// qDebug() << "loginCnt:" << loginCnt;
|
||||
// if (loginCnt == m_total/10+1) {
|
||||
// m_isOnline = true;
|
||||
// qDebug() << "login success";
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
// if (api == "upload") {
|
||||
// qDebug() <<"upload";
|
||||
// QJsonDocument jsondoc = QJsonDocument::fromJson(rawData);
|
||||
// QJsonObject jsonObj = jsondoc.object();
|
||||
|
||||
// int code = jsonObj["code"].toInt();
|
||||
|
||||
// if (code == 0)
|
||||
// this->apiMyfileCount();
|
||||
// }
|
||||
#endif
|
||||
reply->deleteLater();
|
||||
});
|
||||
#endif
|
||||
apiLogin();
|
||||
}
|
||||
|
||||
@@ -422,8 +181,25 @@ void TCHttpService::setUploadNum(int nb)
|
||||
|
||||
void TCHttpService::downloadImage(const QString &requestId, const QUrl &imageUrl)
|
||||
{
|
||||
#if 1
|
||||
QPixmap cachedPixmap;
|
||||
if (QPixmapCache::find(imageUrl.toString(), &cachedPixmap)) {
|
||||
|
||||
|
||||
emit signal_imageDownloaded(requestId, cachedPixmap);
|
||||
return;
|
||||
}
|
||||
|
||||
if (getCachedImage(imageUrl, cachedPixmap)) {
|
||||
QPixmapCache::insert(imageUrl.toString(), cachedPixmap);
|
||||
emit signal_imageDownloaded(requestId, cachedPixmap);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
QNetworkRequest request(imageUrl);
|
||||
request.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferNetwork);
|
||||
QNetworkReply* reply = m_manager.get(request);
|
||||
m_pendingRequests[reply] = requestId;
|
||||
|
||||
connect(reply, &QNetworkReply::finished, [this, reply](){
|
||||
|
||||
@@ -435,6 +211,7 @@ void TCHttpService::downloadImage(const QString &requestId, const QUrl &imageUrl
|
||||
else {
|
||||
QPixmap pixmap;
|
||||
if (pixmap.loadFromData(reply->readAll())) {
|
||||
cacheImage(reply->url(), pixmap);
|
||||
emit signal_imageDownloaded(requestId, pixmap);
|
||||
}
|
||||
else {
|
||||
@@ -442,9 +219,31 @@ void TCHttpService::downloadImage(const QString &requestId, const QUrl &imageUrl
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
reply->deleteLater();
|
||||
});
|
||||
m_pendingRequests[reply] = requestId;
|
||||
// connect(reply, &QNetworkReply::finished, [this, reply, imageUrl](){
|
||||
|
||||
// QString requestId = m_pendingRequests.take(reply);
|
||||
|
||||
// if (reply->error() != QNetworkReply::NoError) {
|
||||
// emit signal_downloadFailed(requestId, reply->errorString());
|
||||
// }
|
||||
// else {
|
||||
// QPixmap pixmap;
|
||||
// if (pixmap.loadFromData(reply->readAll())) {
|
||||
// QPixmapCache::insert(imageUrl.toString(), pixmap);
|
||||
// emit signal_imageDownloaded(requestId, pixmap);
|
||||
// }
|
||||
// else {
|
||||
// emit signal_downloadFailed(requestId, "Failed to load image data");
|
||||
// }
|
||||
// }
|
||||
|
||||
// reply->deleteLater();
|
||||
// });
|
||||
// connect(reply, &QNetworkReply::finished, this, &TCHttpService::slot_downloadFinished);
|
||||
|
||||
}
|
||||
|
||||
QUrl TCHttpService::encodeUrl(QString urlStr, QMap<QString, QString> params)
|
||||
@@ -460,6 +259,76 @@ QUrl TCHttpService::encodeUrl(QString urlStr, QMap<QString, QString> params)
|
||||
return url;
|
||||
}
|
||||
|
||||
void TCHttpService::cleanOldCacheFiles()
|
||||
{
|
||||
QDir cacheDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
|
||||
cacheDir.setNameFilters(QStringList() << "*.png" << "*.jpg" << "*.jpeg" << "*.svg");
|
||||
cacheDir.setFilter(QDir::Files);
|
||||
|
||||
foreach (QString dirFile, cacheDir.entryList()) {
|
||||
QFileInfo fileInfo(cacheDir.absoluteFilePath(dirFile));
|
||||
if (fileInfo.lastModified().daysTo(QDateTime::currentDateTime()) > m_max_cache_days) {
|
||||
cacheDir.remove(dirFile);
|
||||
}
|
||||
}
|
||||
|
||||
qint64 totalSize = 0;
|
||||
QFileInfoList files = cacheDir.entryInfoList(QDir::Files, QDir::Time | QDir::Reversed);
|
||||
|
||||
foreach(QFileInfo file, files) {
|
||||
totalSize += file.size();
|
||||
}
|
||||
|
||||
if (totalSize > m_disk_cache_size_mb * 1024 * 1024) {
|
||||
foreach (QFileInfo file, files) {
|
||||
if (totalSize <= m_disk_cache_size_mb * 1024 * 1024 * 0.9)
|
||||
break;
|
||||
|
||||
totalSize -= file.size();
|
||||
QFile::remove(file.absoluteFilePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool TCHttpService::getCachedImage(const QUrl &imageUrl, QPixmap &pixmap)
|
||||
{
|
||||
QString filePath = getCacheFilePath(imageUrl);
|
||||
|
||||
if (QFile::exists(filePath)) {
|
||||
QFileInfo info(filePath);
|
||||
if (info.lastModified().daysTo(QDateTime::currentDateTime()) > m_max_cache_days) {
|
||||
QFile::remove(filePath);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (pixmap.load(filePath)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
QString TCHttpService::getCacheFilePath(const QUrl &imageUrl)
|
||||
{
|
||||
QCryptographicHash hash(QCryptographicHash::Md5);
|
||||
hash.addData(imageUrl.toString().toUtf8());
|
||||
QString fileName = hash.result().toHex() + ".png";
|
||||
|
||||
return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/" + fileName;
|
||||
}
|
||||
|
||||
void TCHttpService::cacheImage(const QUrl &imageUrl, const QPixmap &pixmap)
|
||||
{
|
||||
QPixmapCache::insert(imageUrl.toString(), pixmap);
|
||||
|
||||
QString filePath = getCacheFilePath(imageUrl);
|
||||
pixmap.save(filePath, "PNG");
|
||||
|
||||
cleanOldCacheFiles();
|
||||
}
|
||||
|
||||
TCHttpService::TCHttpService(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
@@ -475,6 +344,7 @@ void TCHttpService::slot_downloadFinished(QNetworkReply *reply)
|
||||
else {
|
||||
QPixmap pixmap;
|
||||
if (pixmap.loadFromData(reply->readAll())) {
|
||||
cacheImage(reply->url(), pixmap);
|
||||
emit signal_imageDownloaded(requestId, pixmap);
|
||||
}
|
||||
else {
|
||||
@@ -482,5 +352,6 @@ void TCHttpService::slot_downloadFinished(QNetworkReply *reply)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
reply->deleteLater();
|
||||
}
|
||||
|
||||
@@ -19,8 +19,11 @@
|
||||
#include <QHttpPart>
|
||||
#include <QHttpMultiPart>
|
||||
#include <QHash>
|
||||
#include <QPixmapCache>
|
||||
#include <QDir>
|
||||
#include "urldatabase.h"
|
||||
|
||||
|
||||
class TCHttpService : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -29,6 +32,8 @@ private:
|
||||
public:
|
||||
static TCHttpService* getInstance();
|
||||
|
||||
|
||||
|
||||
void apiLogin();
|
||||
#if 0
|
||||
void apiMyfileCount();
|
||||
@@ -36,7 +41,6 @@ public:
|
||||
void apiMd5(const QString& filePath);
|
||||
#endif
|
||||
void apiUpload(const QString& filePath);
|
||||
void apiSharePicShare(const QString& fileName, const QString& md5);
|
||||
void setConfiguration(QString userName, QString firstPwd, QString domain);
|
||||
void setSsl(bool enable);
|
||||
bool getOnlineState();
|
||||
@@ -47,6 +51,10 @@ public:
|
||||
private:
|
||||
|
||||
QUrl encodeUrl(QString url, QMap<QString, QString> params);
|
||||
void cleanOldCacheFiles();
|
||||
bool getCachedImage(const QUrl& imageUrl, QPixmap& pixmap);
|
||||
QString getCacheFilePath(const QUrl& imageUrl);
|
||||
void cacheImage(const QUrl& imageUrl, const QPixmap& pixmap);
|
||||
|
||||
signals:
|
||||
void signal_loginSuc();
|
||||
@@ -56,6 +64,8 @@ signals:
|
||||
|
||||
void signal_imageDownloaded(const QString& requestId, const QPixmap& pixmap);
|
||||
void signal_downloadFailed(const QString& requestId, const QString& error);
|
||||
|
||||
void signal_progressUpdate(int);
|
||||
private:
|
||||
explicit TCHttpService(QObject *parent = nullptr);
|
||||
|
||||
@@ -67,6 +77,11 @@ private:
|
||||
QString m_domain;
|
||||
QString m_firstPwd;
|
||||
QString m_userName;
|
||||
|
||||
int m_memory_cache_size_kb = 10240;
|
||||
int m_disk_cache_size_mb = 100;
|
||||
int m_max_cache_days = 30;
|
||||
|
||||
int m_total;
|
||||
bool m_enableSsl = true;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "urldatabase.h".h"
|
||||
#include "urldatabase.h"
|
||||
#include <QSqlQuery>
|
||||
#include <QSqlError>
|
||||
#include <QDebug>
|
||||
@@ -171,6 +171,33 @@ bool ImageManager::addImageUrl(const QString &domain, const QString &user, const
|
||||
return query.exec();
|
||||
}
|
||||
|
||||
bool ImageManager::removeImageUrl(const QString &domain, const QString &user, const QUrl &imageUrl)
|
||||
{
|
||||
int domainId = getDomainId(domain);
|
||||
int userId = getUserId(user);
|
||||
|
||||
if (domainId == -1 || userId == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
QSqlQuery query(m_db);
|
||||
query.prepare("SELECT id FROM domain_users WHERE domain_id = ? AND user_id = ?");
|
||||
query.addBindValue(domainId);
|
||||
query.addBindValue(userId);
|
||||
|
||||
if (!query.exec() || !query.next()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int domainUserId = query.value(0).toInt();
|
||||
query.prepare("DELETE FROM image_urls WHERE domain_user_id = ? AND image_url = ?");
|
||||
query.addBindValue(domainUserId);
|
||||
query.addBindValue(imageUrl.toString());
|
||||
|
||||
|
||||
return query.exec();
|
||||
}
|
||||
|
||||
QList<QUrl> ImageManager::getImageUrls(const QString &domain, const QString &user)
|
||||
{
|
||||
QList<QUrl> urls;
|
||||
|
||||
@@ -30,9 +30,12 @@ public:
|
||||
// 添加域名-用户对(不重复)
|
||||
bool addDomainUser(const QString &domain, const QString &user);
|
||||
|
||||
// bool deleteDomainUser(const QString& domain, const QString& user);
|
||||
|
||||
// 上传成功后添加图片URL
|
||||
bool addImageUrl(const QString &domain, const QString &user, const QUrl &imageUrl);
|
||||
|
||||
bool removeImageUrl(const QString& domain, const QString& user, const QUrl& imageUrl);
|
||||
// 获取特定域名-用户的所有图片URL
|
||||
QList<QUrl> getImageUrls(const QString &domain, const QString &user);
|
||||
|
||||
|
||||
57
innoSetup/打包脚本.iss
Normal file
@@ -0,0 +1,57 @@
|
||||
; Script generated by the Inno Setup Script Wizard.
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "PicPanel"
|
||||
#define MyAppVersion "2.0"
|
||||
#define MyAppPublisher "Lenn"
|
||||
#define MyAppURL "https://huangyanjie.com"
|
||||
#define MyAppExeName "picpanel.exe"
|
||||
|
||||
[Setup]
|
||||
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||
AppId={{13350D01-8FED-4820-B13F-20F5591D31F7}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppVersion}
|
||||
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
DefaultDirName={autopf}\{#MyAppName}
|
||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
|
||||
; on anything but x64 and Windows 11 on Arm.
|
||||
ArchitecturesAllowed=x64compatible
|
||||
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
|
||||
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
|
||||
; meaning it should use the native 64-bit Program Files directory and
|
||||
; the 64-bit view of the registry.
|
||||
ArchitecturesInstallIn64BitMode=x64compatible
|
||||
DisableProgramGroupPage=yes
|
||||
; Uncomment the following line to run in non administrative install mode (install for current user only).
|
||||
;PrivilegesRequired=lowest
|
||||
OutputDir=C:\Users\Lenn Louis\Desktop
|
||||
OutputBaseFilename=PicPanel-2.0-x64
|
||||
SetupIconFile=C:\Users\Lenn Louis\Desktop\appicon.ico
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
Source: "C:\Users\Lenn Louis\Desktop\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "C:\Users\Lenn Louis\Downloads\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-Release\release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||
|
||||
[Icons]
|
||||
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
6
main.cpp
@@ -2,12 +2,16 @@
|
||||
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QStandardPaths>
|
||||
#include "urldatabase.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QApplication a(argc, argv);
|
||||
|
||||
// QString strPath = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
|
||||
// strPath += "/picpanel.db";
|
||||
// ImageManager::instance()->initialize(strPath);
|
||||
a.setFont(QFont("Microsoft YaHei UI"));
|
||||
Widget w;
|
||||
w.setWindowIcon(QIcon(QPixmap(":/qrc/image/icon.png")));
|
||||
|
||||
@@ -22,7 +22,7 @@ INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += $$PWD/core_form
|
||||
INCLUDEPATH += $$PWD/core_ui
|
||||
INCLUDEPATH += $$PWD/core_support
|
||||
include($$PWD/core_qui/core_qui.pri)
|
||||
# include($$PWD/core_qui/core_qui.pri)
|
||||
include($$PWD/core_form/core_form.pri)
|
||||
include($$PWD/core_ui/core_ui.pri)
|
||||
include($$PWD/core_support/core_support.pri)
|
||||
@@ -40,6 +40,7 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
#UI_DIR = $$PWD/build/ui
|
||||
|
||||
#DESTDIR = $$PWD/build/bin
|
||||
RC_ICONS = appicon.ico
|
||||
|
||||
RESOURCES += \
|
||||
image.qrc \
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 15.0.0, 2025-03-26T01:05:22. -->
|
||||
<!-- Written by QtCreator 4.11.1, 2025-03-26T22:58:21. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{eff88622-f1f6-485c-90af-dd46e6d2c022}</value>
|
||||
<value type="QByteArray">{4f2ec396-c2e0-4f3d-a369-5968ecaf5cee}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
@@ -33,7 +33,6 @@
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.LineEndingBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
@@ -79,7 +78,7 @@
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">16</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
@@ -92,16 +91,16 @@
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 6.7.3 for macOS</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Qt 6.7.3 for macOS</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.673.clang_64_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.7.3 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.7.3 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.673.win64_mingw_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\Lenn Louis\Downloads\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/Lenn Louis/Downloads/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
@@ -139,8 +138,8 @@
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\Lenn Louis\Downloads\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/Lenn Louis/Downloads/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
@@ -180,8 +179,8 @@
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\Lenn Louis\Downloads\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/Lenn Louis/Downloads/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
@@ -243,15 +242,15 @@
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="PerfRecordArgsId">-e cpu-cycles --call-graph dwarf,4096 -F 250</value>
|
||||
<value type="QString" key="PerfRecordArgsId">-e cpu-cycles --call-graph "dwarf,4096" -F 250</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/Users/lenn/Workspace/picpanel/picpanel.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Lenn Louis/Downloads/picpanel/picpanel.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">C:/Users/Lenn Louis/Downloads/picpanel/picpanel.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Debug/picpanel.app/Contents/MacOS</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/Lenn Louis/Downloads/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-Release</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
|
||||
229
picpanel.pro.user.631b589
Normal file
@@ -0,0 +1,229 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 14.0.2, 2025-03-26T18:36:00. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{631b5895-04c2-4f08-83d2-9e1277f189a1}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">2</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<value type="bool" key="AutoTest.ApplyFilter">false</value>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<valuelist type="QVariantList" key="AutoTest.PathFilters"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">12</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.7.3 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.7.3 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.673.win64_mingw_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">E:/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">E:/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">2</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<value type="QList<int>" key="Analyzer.Valgrind.VisibleErrorKinds"></value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="PerfRecordArgsId">-e cpu-cycles --call-graph "dwarf,4096" -F 250</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:E:/picpanel/picpanel.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">E:/picpanel/picpanel.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">E:/picpanel/build/Desktop_Qt_6_7_3_MinGW_64_bit-release</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
271
picpanel.pro.user.eff8862
Normal file
@@ -0,0 +1,271 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 15.0.0, 2025-03-26T01:05:22. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{eff88622-f1f6-485c-90af-dd46e6d2c022}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.LineEndingBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">2</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<value type="bool" key="AutoTest.ApplyFilter">false</value>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<valuelist type="QVariantList" key="AutoTest.PathFilters"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 6.7.3 for macOS</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Qt 6.7.3 for macOS</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.673.clang_64_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="PerfRecordArgsId">-e cpu-cycles --call-graph dwarf,4096 -F 250</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/Users/lenn/Workspace/picpanel/picpanel.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/Users/lenn/Workspace/picpanel/build/Qt_6_7_3_for_macOS-Debug/picpanel.app/Contents/MacOS</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
BIN
qrc/image/checkbox_checked.png
Normal file
|
After Width: | Height: | Size: 683 B |
BIN
qrc/image/checkbox_parcial.png
Normal file
|
After Width: | Height: | Size: 328 B |
BIN
qrc/image/checkbox_unchecked.png
Normal file
|
After Width: | Height: | Size: 532 B |
|
Before Width: | Height: | Size: 580 B |
|
Before Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -284,3 +284,66 @@ QWidget#FrmUpload > QLabel#labTitle {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
QProgressBar {
|
||||
border: 2px solid #3A3A3A;
|
||||
border-radius: 5px;
|
||||
background-color: #D3D3D3;
|
||||
}
|
||||
|
||||
QProgressBar::chunk {
|
||||
background-color: #1E90FF;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
QCheckBox {
|
||||
spacing: 0px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
QCheckBox::indicator {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
QCheckBox::indicator:unchecked {
|
||||
image: url(:/qrc/image/checkbox_unchecked.png)
|
||||
}
|
||||
|
||||
QCheckBox::indicator:checked {
|
||||
image: url(:/qrc/image/checkbox_checked.png)
|
||||
}
|
||||
|
||||
QCheckBox::indicator:indeterminate {
|
||||
image: url(:/qrc/image/checkbox_parcial.png)
|
||||
}
|
||||
|
||||
QComboBox QAbstractItemView {
|
||||
|
||||
border-style: none;
|
||||
border-radius: 10px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
QComboBox QAbstractItemView::item {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
QComboBox QAbstractItemView::item:selected {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
border-style: none;
|
||||
color: black;
|
||||
background-color: #F5F7FA;
|
||||
}
|
||||
|
||||
QComboBox QAbstractItemView::item:hover {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
background-color: #F5F7FA;
|
||||
color: black;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
|
||||
3
qss.qrc
@@ -1,5 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>qrc/qss/blacksoft.qss</file>
|
||||
<file>qrc/image/checkbox_checked.png</file>
|
||||
<file>qrc/image/checkbox_parcial.png</file>
|
||||
<file>qrc/image/checkbox_unchecked.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -12,8 +12,9 @@ Widget::Widget(QWidget *parent)
|
||||
initWidget();
|
||||
initSignalSlot();
|
||||
initTrayApp();
|
||||
QString stdPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
|
||||
ImageManager::instance()->initialize(stdPath + "/picpanel.db");
|
||||
// QString stdPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
|
||||
// qDebug() << stdPath;
|
||||
// ImageManager::instance()->initialize(stdPath + "/picpanel.db");
|
||||
// this->btnPageUpload->setChecked(true);
|
||||
// this->btnPageUpload->setStyleSheet("{border: none;border-right: 4px solid #409EFF;color: #409EFF;}");
|
||||
}
|
||||
@@ -110,7 +111,7 @@ bool Widget::eventFilter(QObject *watched, QEvent *event)
|
||||
if (mouseEvent->type() == QEvent::MouseButtonPress) {
|
||||
if (mouseEvent->button() == Qt::LeftButton) {
|
||||
mousePressed = true;
|
||||
mousePoint = mouseEvent->globalPos() - this->pos();
|
||||
mousePoint = mouseEvent->globalPosition().toPoint() - this->pos();
|
||||
}
|
||||
}
|
||||
else if (mouseEvent->type() == QEvent::MouseButtonRelease){
|
||||
@@ -118,7 +119,7 @@ bool Widget::eventFilter(QObject *watched, QEvent *event)
|
||||
}
|
||||
else if (mouseEvent->type() == QEvent::MouseMove) {
|
||||
if (mousePressed) {
|
||||
this->move(mouseEvent->globalPos() - mousePoint);
|
||||
this->move(mouseEvent->globalPosition().toPoint() - mousePoint);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||