fix cursor UI
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 699 B |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 991 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 890 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 919 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 768 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 991 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 779 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 784 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 957 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
@ -60,7 +60,7 @@ void CursorImageWidget::updateImage(const QString& imagePath)
|
|||
backgroundItem->setGraphicsEffect(blurEffect);
|
||||
|
||||
// 根据需要重新布局图像项
|
||||
int columnCount = 15;
|
||||
int columnCount = 10;
|
||||
int row = 1;
|
||||
int col = 0;
|
||||
|
||||
|
@ -79,8 +79,8 @@ void CursorImageWidget::updateImage(const QString& imagePath)
|
|||
<< "zoom-in" << "zoom-out"
|
||||
<< "circle" << "color-picker" << "pencil" << "dotbox" << "X_cursor" << "plus";
|
||||
|
||||
QStringList order2 = QStringList() << "left_ptr_watch_1" << "left_ptr_watch_2" << "left_ptr_watch_3" << "left_ptr_watch_4" << "left_ptr_watch_5"
|
||||
<< "watch_1" << "watch_2" << "watch_3" << "watch_4" << "watch_5" << "watch_6" << "watch_7" << "watch_8" << "watch_9" << "watch_10";
|
||||
QStringList order2 = QStringList() << "watch_1" << "watch_2" << "watch_3" << "watch_4" << "watch_5" << "watch_6" << "watch_7" << "watch_8" << "watch_9" << "watch_10"
|
||||
<< "left_ptr_watch_1" << "left_ptr_watch_2" << "left_ptr_watch_3" << "left_ptr_watch_4" << "left_ptr_watch_5";
|
||||
|
||||
if (m_iconMap->contains("left_ptr_watch_1")) {
|
||||
return order2.indexOf(pair1.first) < order2.indexOf(pair2.first);
|
||||
|
@ -97,7 +97,7 @@ void CursorImageWidget::updateImage(const QString& imagePath)
|
|||
if (!pixmap.isNull()) {
|
||||
QGraphicsPixmapItem* item = graphicsView->scene()->addPixmap(pixmap.scaled(128, 128));
|
||||
|
||||
item->setPos(col * 128, row * 128);
|
||||
item->setPos(col * 198, row * 198);
|
||||
item->setScale(1.0);
|
||||
item->setData(0, widgetName);
|
||||
item->setData(1, filePath);
|
||||
|
@ -178,7 +178,7 @@ CursorImageWidget::CursorImageWidget(QWidget *parent, const QMap<QString, QStrin
|
|||
graphicsView->fitInView(scene->sceneRect(), Qt::KeepAspectRatio);
|
||||
graphicsView->show();
|
||||
|
||||
int columnCount = 15;
|
||||
int columnCount = 10;
|
||||
int row = 1;
|
||||
int col = 0;
|
||||
|
||||
|
@ -197,8 +197,9 @@ CursorImageWidget::CursorImageWidget(QWidget *parent, const QMap<QString, QStrin
|
|||
<< "zoom-in" << "zoom-out"
|
||||
<< "circle" << "color-picker" << "pencil" << "dotbox" << "X_cursor" << "plus";
|
||||
|
||||
QStringList order2 = QStringList() << "left_ptr_watch_1" << "left_ptr_watch_2" << "left_ptr_watch_3" << "left_ptr_watch_4" << "left_ptr_watch_5"
|
||||
<< "watch_1" << "watch_2" << "watch_3" << "watch_4" << "watch_5" << "watch_6" << "watch_7" << "watch_8" << "watch_9" << "watch_10";
|
||||
QStringList order2 = QStringList() << "watch_1" << "watch_2" << "watch_3" << "watch_4" << "watch_5" << "watch_6" << "watch_7" << "watch_8" << "watch_9" << "watch_10"
|
||||
<< "left_ptr_watch_1" << "left_ptr_watch_2" << "left_ptr_watch_3" << "left_ptr_watch_4" << "left_ptr_watch_5";
|
||||
|
||||
|
||||
if (m_iconMap->contains("left_ptr_watch_1")) {
|
||||
return order2.indexOf(pair1.first) < order2.indexOf(pair2.first);
|
||||
|
@ -215,7 +216,7 @@ CursorImageWidget::CursorImageWidget(QWidget *parent, const QMap<QString, QStrin
|
|||
if (!pixmap.isNull()) {
|
||||
QGraphicsPixmapItem* item = scene->addPixmap(pixmap.scaled(128, 128));
|
||||
|
||||
item->setPos(col * 128, row * 128);
|
||||
item->setPos(col * 198, row * 198);
|
||||
item->setScale(1.0);
|
||||
item->setData(0, widgetName);
|
||||
item->setData(1, filePath);
|
||||
|
|