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) |
The QtTools class Helper class to reduce adding a lot of extra QT_VERSION checks to client code.
|
static |
|
static |
Referenced by TechDrawGui::QGIView::calculateFontPixelWidth(), Gui::Dialog::DlgSettingsColorGradientImp::DlgSettingsColorGradientImp(), Gui::ViewProviderAnnotationLabel::drawImage(), Gui::TextEditor::lineNumberAreaWidth(), Gui::PropertyListEditor::lineNumberAreaWidth(), Gui::QuantitySpinBox::minimumSizeHint(), Gui::PythonConsole::OnChange(), Gui::TextEditor::OnChange(), Gui::DockWnd::ReportOutput::OnChange(), SqueezeLabel::paintEvent(), Gui::FileChooser::setButtonText(), Gui::LabelEditor::setButtonText(), Gui::Dialog::DlgSettingsEditorImp::setEditorTabWidth(), Gui::AlignmentView::setupHeadUpDisplay(), Gui::QuantitySpinBox::sizeForText(), Gui::QuantitySpinBox::sizeHint(), Gui::MainWindow::splashImage(), TechDrawGui::QGIViewBalloon::updateBalloon(), and PartGui::FaceColors::updatePanel().
|
static |
Referenced by PartDesignGui::TaskDressUpParameters::KeyEvent().