mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 15:27:57 +00:00
guiutil.cpp/.h: fix a -Wreorder compiler warning and make constructor for ToolTipToRichTextFilter explicit
This commit is contained in:
parent
508471bbc0
commit
58b01afc50
@ -243,8 +243,8 @@ void openDebugLogfile()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent):
|
ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent) :
|
||||||
size_threshold(size_threshold), QObject(parent)
|
QObject(parent), size_threshold(size_threshold)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -77,11 +77,11 @@ namespace GUIUtil
|
|||||||
representation if needed. This assures that Qt can word-wrap long tooltip messages.
|
representation if needed. This assures that Qt can word-wrap long tooltip messages.
|
||||||
Tooltips longer than the provided size threshold (in characters) are wrapped.
|
Tooltips longer than the provided size threshold (in characters) are wrapped.
|
||||||
*/
|
*/
|
||||||
class ToolTipToRichTextFilter: public QObject
|
class ToolTipToRichTextFilter : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ToolTipToRichTextFilter(int size_threshold, QObject *parent);
|
explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = 0);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *obj, QEvent *evt);
|
bool eventFilter(QObject *obj, QEvent *evt);
|
||||||
|
Loading…
Reference in New Issue
Block a user