summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/DelegateCommons.h')
-rw-r--r--Swift/QtUI/Roster/DelegateCommons.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/DelegateCommons.h b/Swift/QtUI/Roster/DelegateCommons.h
index ac5efc4..9213ef5 100644
--- a/Swift/QtUI/Roster/DelegateCommons.h
+++ b/Swift/QtUI/Roster/DelegateCommons.h
@@ -8,6 +8,9 @@
#include <QApplication>
#include <QFont>
+#include <QPainter>
+#include <QRect>
+#include <QString>
namespace Swift {
class DelegateCommons {
@@ -18,6 +21,8 @@ namespace Swift {
detailFont.setPointSize(nameFont.pointSize() - detailFontSizeDrop);
}
+ static void drawElidedText(QPainter* painter, const QRect& region, const QString& text);
+
int detailFontSizeDrop;
QFont nameFont;
QFont detailFont;