mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
(trunk qt) #2782 "Cannot copy/paste hash (among other fields) from QT4 torrent properties window" -- fixed in trunk for 2.00
This commit is contained in:
parent
6b84271314
commit
eb99be2194
2 changed files with 9 additions and 0 deletions
|
@ -41,12 +41,20 @@
|
||||||
|
|
||||||
#include "squeezelabel.h"
|
#include "squeezelabel.h"
|
||||||
|
|
||||||
|
void
|
||||||
|
SqueezeLabel::init()
|
||||||
|
{
|
||||||
|
setTextInteractionFlags( Qt::TextSelectableByMouse );
|
||||||
|
}
|
||||||
|
|
||||||
SqueezeLabel::SqueezeLabel(const QString& text, QWidget *parent) : QLabel(text, parent)
|
SqueezeLabel::SqueezeLabel(const QString& text, QWidget *parent) : QLabel(text, parent)
|
||||||
{
|
{
|
||||||
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
SqueezeLabel::SqueezeLabel(QWidget *parent) : QLabel(parent)
|
SqueezeLabel::SqueezeLabel(QWidget *parent) : QLabel(parent)
|
||||||
{
|
{
|
||||||
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SqueezeLabel::paintEvent(QPaintEvent *event)
|
void SqueezeLabel::paintEvent(QPaintEvent *event)
|
||||||
|
|
|
@ -53,6 +53,7 @@ public:
|
||||||
SqueezeLabel(const QString& text, QWidget *parent = 0);
|
SqueezeLabel(const QString& text, QWidget *parent = 0);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void init();
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue