mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
update styles & fix a broken path in fileexplorerwidget
This commit is contained in:
@@ -35,6 +35,9 @@ DevicePendingWidget::DevicePendingWidget(bool locked, QWidget *parent)
|
||||
this);
|
||||
m_label->setWordWrap(true);
|
||||
m_label->setAlignment(Qt::AlignCenter);
|
||||
QFont font = m_label->font();
|
||||
font.setPointSize(18);
|
||||
m_label->setFont(font);
|
||||
layout->addWidget(m_label);
|
||||
|
||||
m_imageLabel = new ResponsiveQLabel(this);
|
||||
|
||||
@@ -410,7 +410,7 @@ DevicePendingSidebarItem::DevicePendingSidebarItem(const QString &udid,
|
||||
layout->setSpacing(1);
|
||||
|
||||
QProcessIndicator *spinner = new QProcessIndicator(this);
|
||||
spinner->setFixedSize(32, 32);
|
||||
spinner->setFixedSize(26, 26);
|
||||
spinner->setType(QProcessIndicator::line_rotate);
|
||||
spinner->start();
|
||||
|
||||
|
||||
@@ -117,10 +117,10 @@ void FileExplorerWidget::setupSidebar()
|
||||
|
||||
QTreeWidgetItem *wallpapersItem = new QTreeWidgetItem(commonPlacesItem);
|
||||
QVariantMap dataMap;
|
||||
dataMap["path"] = "../../../var/mobile/Library/Wallpapers";
|
||||
dataMap["alias"] = "Wallpapers";
|
||||
dataMap["path"] = "/DCIM";
|
||||
dataMap["alias"] = "Pictures";
|
||||
dataMap["afc2"] = false;
|
||||
wallpapersItem->setText(0, "Wallpapers");
|
||||
wallpapersItem->setText(0, "Pictures");
|
||||
wallpapersItem->setIcon(0, QIcon::fromTheme("image-x-generic"));
|
||||
wallpapersItem->setData(0, Qt::UserRole, QVariant::fromValue(dataMap));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user