Minor fix and modification on selectable tests in dialogs (#1990)

* makes text of the imgur upload selectable

* fix the mouse to I shape for selectable texts
This commit is contained in:
Mehrad Mahmoudian
2021-10-20 13:50:07 +03:00
committed by GitHub
parent 534f05b238
commit 94ed574f35
2 changed files with 4 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ ImgurUploader::ImgurUploader(const QPixmap& capture, QWidget* parent)
m_spinner->start();
m_infoLabel = new QLabel(tr("Uploading Image"));
m_infoLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
m_infoLabel->setCursor(QCursor(Qt::IBeamCursor));
m_vLayout = new QVBoxLayout();
setLayout(m_vLayout);

View File

@@ -69,12 +69,14 @@ void InfoWindow::initLabels()
auto* versionLabel = new QLabel(GlobalValues::versionInfo(), this);
versionLabel->setAlignment(Qt::AlignHCenter);
versionLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
versionLabel->setCursor(QCursor(Qt::IBeamCursor));
m_layout->addWidget(versionLabel);
QString kernelInfo = generateKernelString();
auto* kernelLabel = new QLabel(kernelInfo, this);
kernelLabel->setAlignment(Qt::AlignHCenter);
kernelLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
kernelLabel->setCursor(QCursor(Qt::IBeamCursor));
m_layout->addWidget(kernelLabel);
auto* copyVersion = new QPushButton("Copy Info", this);