Gui::QtTools Class Reference

The QtTools class Helper class to reduce adding a lot of extra QT_VERSION checks to client code. More...

#include <Tools.h>

Static Public Member Functions

static int horizontalAdvance (const QFontMetrics &fm, const QString &text, int len=-1)
 
static int horizontalAdvance (const QFontMetrics &fm, QChar ch)
 
static bool matches (QKeyEvent *ke, const QKeySequence &ks)
 

Detailed Description

The QtTools class Helper class to reduce adding a lot of extra QT_VERSION checks to client code.

Member Function Documentation

◆ horizontalAdvance() [1/2]

static int Gui::QtTools::horizontalAdvance ( const QFontMetrics &  fm,
const QString &  text,
int  len = -1 
)
static

◆ horizontalAdvance() [2/2]

◆ matches()

static bool Gui::QtTools::matches ( QKeyEvent *  ke,
const QKeySequence &  ks 
)
static

The documentation for this class was generated from the following file: