Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtpropertybrowserutils.cpp File Reference

(656c17ff64f091fb5881a6c09f9bbd8fe6acf41b)

#include "qtpropertybrowserutils_p.h"
#include <QtWidgets/qapplication.h>
#include <QtWidgets/qboxlayout.h>
#include <QtWidgets/qcheckbox.h>
#include <QtWidgets/qlineedit.h>
#include <QtWidgets/qmenu.h>
#include <QtGui/qevent.h>
#include <QtGui/qpainter.h>
#include <QtGui/qpainterstateguard.h>
#include <QtCore/qlocale.h>
#include <QtCore/qoperatingsystemversion.h>
#include <utility>
Include dependency graph for qtpropertybrowserutils.cpp:

Go to the source code of this file.

Classes

class  QtPixmapIconEngine
class  QtPropertyBrushValueIconEngine
class  QtPropertyFontValueIconEngine

Typedefs

using ShapeNames = QHash<Qt::CursorShape, const char *>
using CursorResource = std::pair<Qt::CursorShape, QLatin1StringView>

Functions

static void clearCursorDatabase ()
static const ShapeNamesshapeNames ()
static QIcon getResourceCursorIcon (const QString &fn)
static QIcon getWindowsCursorIcon (QLatin1StringView name)
static QIcon getCocoaCursorIcon (QLatin1StringView name)

Variables

static constexpr CursorResource cursorResources []

Typedef Documentation

◆ CursorResource

typedef std::pair< Qt::CursorShape, QLatin1StringView > CursorResource = std::pair<Qt::CursorShape, QLatin1StringView>

Definition at line 59 of file qtpropertybrowserutils.cpp.

◆ ShapeNames

typedef QHash< Qt::CursorShape, const char * > ShapeNames = QHash<Qt::CursorShape, const char *>

Definition at line 32 of file qtpropertybrowserutils.cpp.

Function Documentation

◆ clearCursorDatabase()

void clearCursorDatabase ( )
static

Definition at line 27 of file qtpropertybrowserutils.cpp.

References QtCursorDatabase::clear(), and QtCursorDatabase::instance().

Referenced by QtCursorDatabase::QtCursorDatabase().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCocoaCursorIcon()

QIcon getCocoaCursorIcon ( QLatin1StringView name)
static

Definition at line 147 of file qtpropertybrowserutils.cpp.

◆ getResourceCursorIcon()

QIcon getResourceCursorIcon ( const QString & fn)
inlinestatic

Definition at line 124 of file qtpropertybrowserutils.cpp.

◆ getWindowsCursorIcon()

QIcon getWindowsCursorIcon ( QLatin1StringView name)
static

Definition at line 130 of file qtpropertybrowserutils.cpp.

◆ shapeNames()

const ShapeNames & shapeNames ( )
static

Definition at line 34 of file qtpropertybrowserutils.cpp.

Variable Documentation

◆ cursorResources

constexpr CursorResource cursorResources
staticconstexpr
Initial value:
= {
{Qt::ArrowCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-arrow.png"_L1},
{Qt::UpArrowCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-uparrow.png"_L1},
{Qt::CrossCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-cross.png"_L1},
{Qt::WaitCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-wait.png"_L1},
{Qt::IBeamCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-ibeam.png"_L1},
{Qt::SizeVerCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-sizev.png"_L1},
{Qt::SizeHorCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-sizeh.png"_L1},
{Qt::SizeFDiagCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-sizef.png"_L1},
{Qt::SizeBDiagCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-sizeb.png"_L1},
{Qt::SizeAllCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-sizeall.png"_L1},
{Qt::SplitVCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-vsplit.png"_L1},
{Qt::SplitHCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-hsplit.png"_L1},
{Qt::PointingHandCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-hand.png"_L1},
{Qt::ForbiddenCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-forbidden.png"_L1},
{Qt::OpenHandCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-openhand.png"_L1},
{Qt::ClosedHandCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-closedhand.png"_L1},
{Qt::WhatsThisCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-whatsthis.png"_L1},
{Qt::BusyCursor, ":/qt-project.org/qtpropertybrowser/images/cursor-busy.png"_L1}
}
@ CrossCursor
@ PointingHandCursor
@ SizeHorCursor
@ SizeAllCursor
@ WaitCursor
@ SizeVerCursor
@ OpenHandCursor
@ SizeFDiagCursor
@ WhatsThisCursor
@ ArrowCursor
@ SplitVCursor
@ UpArrowCursor
@ ClosedHandCursor
@ IBeamCursor
@ SizeBDiagCursor
@ ForbiddenCursor
@ BusyCursor
@ SplitHCursor

Definition at line 61 of file qtpropertybrowserutils.cpp.