Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krsqueezedtextlabel.cpp
Show All 33 Lines | |||||
34 | KrSqueezedTextLabel::KrSqueezedTextLabel(QWidget *parent): | 34 | KrSqueezedTextLabel::KrSqueezedTextLabel(QWidget *parent): | ||
35 | KSqueezedTextLabel(parent), _index(-1), _length(-1) | 35 | KSqueezedTextLabel(parent), _index(-1), _length(-1) | ||
36 | { | 36 | { | ||
37 | setAutoFillBackground(true); | 37 | setAutoFillBackground(true); | ||
38 | } | 38 | } | ||
39 | 39 | | |||
40 | 40 | | |||
41 | KrSqueezedTextLabel::~KrSqueezedTextLabel() | 41 | KrSqueezedTextLabel::~KrSqueezedTextLabel() | ||
42 | { | 42 | = default; | ||
43 | } | | |||
44 | 43 | | |||
45 | void KrSqueezedTextLabel::mousePressEvent(QMouseEvent *e) | 44 | void KrSqueezedTextLabel::mousePressEvent(QMouseEvent *e) | ||
46 | { | 45 | { | ||
47 | e->ignore(); | 46 | e->ignore(); | ||
48 | emit clicked(e); | 47 | emit clicked(e); | ||
49 | } | 48 | } | ||
50 | 49 | | |||
51 | void KrSqueezedTextLabel::squeezeTextToLabel(int index, int length) | 50 | void KrSqueezedTextLabel::squeezeTextToLabel(int index, int length) | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |