diff options
author | Ken Moore <ken@ixsystems.com> | 2019-01-02 09:31:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-02 09:31:52 -0500 |
commit | cd407705124fefe2b293120c845319c369929c86 (patch) | |
tree | 635f1cea2c9a39ee7495396a43aa04957dad7f2a /src-qt5/desktop-utils/lumina-pdf/Widget.h | |
parent | Merge pull request #644 from maxsteciuk/bugfix/lumina-fm-crash-on-startup (diff) | |
parent | Switches from keeping links in a QHash to a std::vector. This fixes some race... (diff) | |
download | lumina-cd407705124fefe2b293120c845319c369929c86.tar.gz lumina-cd407705124fefe2b293120c845319c369929c86.tar.bz2 lumina-cd407705124fefe2b293120c845319c369929c86.zip |
Merge pull request #642 from stackyjoe/master
Some changes and fixes to LuminaPDF
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/Widget.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/Widget.h | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/Widget.h b/src-qt5/desktop-utils/lumina-pdf/Widget.h index 0bfe5cdd..44613e04 100644 --- a/src-qt5/desktop-utils/lumina-pdf/Widget.h +++ b/src-qt5/desktop-utils/lumina-pdf/Widget.h @@ -1,29 +1,32 @@ #include <QStringList> -class Widget{ - public: - Widget(int _widgetType, QRectF _loc, QString _currText, int _maxLen, int _contentType) : widgetType(_widgetType), loc(_loc), currText(_currText), maxLen(_maxLen), contentType(_contentType) { } +class Widget { +public: + Widget(int _widgetType, QRectF _loc, QString _currText, int _maxLen, + int _contentType) + : widgetType(_widgetType), loc(_loc), currText(_currText), + maxLen(_maxLen), contentType(_contentType) {} - virtual ~Widget() { } + virtual ~Widget() {} - virtual int getWidgetType() { return widgetType; } - virtual QRectF getLocation() { return loc; } - virtual QString getCurrentText() { return currText; } - virtual int getMaxLength() { return maxLen; } - virtual int getContentType() { return contentType; } - virtual QStringList getOptionList() { return optionList; } - virtual QStringList getExportList() { return exportList; } + virtual int getWidgetType() { return widgetType; } + virtual QRectF getLocation() { return loc; } + virtual QString getCurrentText() { return currText; } + virtual int getMaxLength() { return maxLen; } + virtual int getContentType() { return contentType; } + virtual QStringList getOptionList() { return optionList; } + virtual QStringList getExportList() { return exportList; } - virtual void setOptions(QStringList _optionList) { optionList = _optionList; } - virtual void setExports(QStringList _exportList) { exportList = _exportList; } + virtual void setOptions(QStringList _optionList) { optionList = _optionList; } + virtual void setExports(QStringList _exportList) { exportList = _exportList; } - private: - int widgetType; - QRectF loc; - QString currText; - int maxLen; - int contentType; +private: + int widgetType; + QRectF loc; + QString currText; + int maxLen; + int contentType; - QStringList optionList; - QStringList exportList; + QStringList optionList; + QStringList exportList; }; |