Rename qss to css.
This commit is contained in:
@@ -19,6 +19,7 @@ QWidget#statusBar
|
|||||||
QToolButton
|
QToolButton
|
||||||
{
|
{
|
||||||
border-radius: 5px; margin:0px 0px 0px 0px; padding:3px;
|
border-radius: 5px; margin:0px 0px 0px 0px; padding:3px;
|
||||||
|
background-color: #323232;
|
||||||
}
|
}
|
||||||
|
|
||||||
QToolButton::menu-button
|
QToolButton::menu-button
|
||||||
@@ -44,6 +45,11 @@ QToolButton:pressed
|
|||||||
background-color: #646464;
|
background-color: #646464;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QToolButton:disabled
|
||||||
|
{
|
||||||
|
background-color: #222222;
|
||||||
|
}
|
||||||
|
|
||||||
/*-----QMenu-----*/
|
/*-----QMenu-----*/
|
||||||
QMenu {
|
QMenu {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<file>Resources/import/setting.png</file>
|
<file>Resources/import/setting.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/StyleSheet">
|
<qresource prefix="/StyleSheet">
|
||||||
<file>Combinear.qss</file>
|
<file>Combinear.css</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/InfiniteViewer">
|
<qresource prefix="/InfiniteViewer">
|
||||||
<file>Icon/angle.png</file>
|
<file>Icon/angle.png</file>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "QDicomViewer.h"
|
#include "QDicomViewer.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@@ -52,7 +52,7 @@ void QDicomViewer::Initial() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QDicomViewer::loadStyleSheet(const QString &sheetName) {
|
void QDicomViewer::loadStyleSheet(const QString &sheetName) {
|
||||||
QFile file(":/StyleSheet/" + sheetName + ".qss");
|
QFile file(":/StyleSheet/" + sheetName + ".css");
|
||||||
file.open(QFile::ReadOnly);
|
file.open(QFile::ReadOnly);
|
||||||
if (file.isOpen()) {
|
if (file.isOpen()) {
|
||||||
QString styleSheet = this->styleSheet();
|
QString styleSheet = this->styleSheet();
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <QtWidgets/QMainWindow>
|
#include <QtWidgets/QMainWindow>
|
||||||
#include "ui_QDicomViewer.h"
|
#include "ui_QDicomViewer.h"
|
||||||
#include "UI/Widget/importwidget.h"
|
#include "UI/Widget/Import/importwidget.h"
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include "UI/Dialog/exportdialog.h"
|
#include "UI/Dialog/exportdialog.h"
|
||||||
#include "customwindow.h"
|
#include "customwindow.h"
|
||||||
|
#include "Common/Worker/WorkerManager.h"
|
||||||
|
#include "UI/Manager/ImageViewStateCheckWorker.h"
|
||||||
#include "UI/Widget/Measure/pqFontPropertyWidget.h"
|
#include "UI/Widget/Measure/pqFontPropertyWidget.h"
|
||||||
|
|
||||||
typedef tuple<const char *, const char *, int> ActionProperty;
|
typedef tuple<const char *, const char *, int> ActionProperty;
|
||||||
@@ -106,6 +108,8 @@ private:
|
|||||||
QIcon icon_auto;
|
QIcon icon_auto;
|
||||||
QIcon icon_dis;
|
QIcon icon_dis;
|
||||||
QToolButton* syncBtn = nullptr;
|
QToolButton* syncBtn = nullptr;
|
||||||
|
QToolButton* fusionBtn = nullptr;
|
||||||
|
QToolButton* mprBtn = nullptr;
|
||||||
QAction *m_sync_item_action[SYNC_ITEM_NUM];
|
QAction *m_sync_item_action[SYNC_ITEM_NUM];
|
||||||
QAction* m_sync_state_action;
|
QAction* m_sync_state_action;
|
||||||
QAction* m_measure_hidden_action;
|
QAction* m_measure_hidden_action;
|
||||||
@@ -124,6 +128,9 @@ private:
|
|||||||
|
|
||||||
AnnotationActorType m_cur_measure = AnnotationActorType::RulerAnn;
|
AnnotationActorType m_cur_measure = AnnotationActorType::RulerAnn;
|
||||||
|
|
||||||
|
WorkerManager workerManager;
|
||||||
|
ImageViewStateCheckWorker worker;
|
||||||
|
|
||||||
void syncStateChanged() const;
|
void syncStateChanged() const;
|
||||||
void switchSyncState();
|
void switchSyncState();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user