Rename qss to css.

This commit is contained in:
Krad
2022-07-29 18:07:38 +08:00
parent 453a073225
commit 8e2b0c2015
4 changed files with 17 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ QWidget#statusBar
QToolButton
{
border-radius: 5px; margin:0px 0px 0px 0px; padding:3px;
background-color: #323232;
}
QToolButton::menu-button
@@ -44,6 +45,11 @@ QToolButton:pressed
background-color: #646464;
}
QToolButton:disabled
{
background-color: #222222;
}
/*-----QMenu-----*/
QMenu {
background-color: #f0f0f0;

View File

@@ -11,7 +11,7 @@
<file>Resources/import/setting.png</file>
</qresource>
<qresource prefix="/StyleSheet">
<file>Combinear.qss</file>
<file>Combinear.css</file>
</qresource>
<qresource prefix="/InfiniteViewer">
<file>Icon/angle.png</file>

View File

@@ -1,4 +1,4 @@
#include "QDicomViewer.h"
#include "QDicomViewer.h"
#include <QFileDialog>
#include <QDebug>
@@ -52,7 +52,7 @@ void QDicomViewer::Initial() {
}
void QDicomViewer::loadStyleSheet(const QString &sheetName) {
QFile file(":/StyleSheet/" + sheetName + ".qss");
QFile file(":/StyleSheet/" + sheetName + ".css");
file.open(QFile::ReadOnly);
if (file.isOpen()) {
QString styleSheet = this->styleSheet();

View File

@@ -1,10 +1,12 @@
#pragma once
#include <QtWidgets/QMainWindow>
#include "ui_QDicomViewer.h"
#include "UI/Widget/importwidget.h"
#include "UI/Widget/Import/importwidget.h"
#include <QSettings>
#include "UI/Dialog/exportdialog.h"
#include "customwindow.h"
#include "Common/Worker/WorkerManager.h"
#include "UI/Manager/ImageViewStateCheckWorker.h"
#include "UI/Widget/Measure/pqFontPropertyWidget.h"
typedef tuple<const char *, const char *, int> ActionProperty;
@@ -106,6 +108,8 @@ private:
QIcon icon_auto;
QIcon icon_dis;
QToolButton* syncBtn = nullptr;
QToolButton* fusionBtn = nullptr;
QToolButton* mprBtn = nullptr;
QAction *m_sync_item_action[SYNC_ITEM_NUM];
QAction* m_sync_state_action;
QAction* m_measure_hidden_action;
@@ -124,6 +128,9 @@ private:
AnnotationActorType m_cur_measure = AnnotationActorType::RulerAnn;
WorkerManager workerManager;
ImageViewStateCheckWorker worker;
void syncStateChanged() const;
void switchSyncState();