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
grid.cpp File Reference

(471ad91e26ca0af4afbffc3f3fc9bb32497a5299)

#include "grid_p.h"
#include "iconloader_p.h"
#include <QtCore/qlist.h>
#include <QtCore/qstring.h>
#include <QtCore/qvariant.h>
#include <QtCore/qmap.h>
#include <QtGui/qevent.h>
#include <QtGui/qpainter.h>
#include <QtWidgets/qwidget.h>
Include dependency graph for grid.cpp:

Go to the source code of this file.

Namespaces

namespace  qdesigner_internal
 Auxiliary methods to store/retrieve settings.

Functions

template<class T>
static void valueToVariantMap (T value, T defaultValue, const QString &key, QVariantMap &v, bool forceKey)
template<class T>
static bool valueFromVariantMap (const QVariantMap &v, const QString &key, T &value)

Variables

static QT_BEGIN_NAMESPACE const bool defaultSnap = true
static const bool defaultVisible = true
static const int DEFAULT_GRID = 10
static const char * KEY_VISIBLE = "gridVisible"
static const char * KEY_SNAPX = "gridSnapX"
static const char * KEY_SNAPY = "gridSnapY"
static const char * KEY_DELTAX = "gridDeltaX"
static const char * KEY_DELTAY = "gridDeltaY"

Function Documentation

◆ valueFromVariantMap()

template<class T>
bool valueFromVariantMap ( const QVariantMap & v,
const QString & key,
T & value )
inlinestatic

Definition at line 37 of file grid.cpp.

◆ valueToVariantMap()

template<class T>
void valueToVariantMap ( T value,
T defaultValue,
const QString & key,
QVariantMap & v,
bool forceKey )
inlinestatic

Definition at line 30 of file grid.cpp.

Variable Documentation

◆ DEFAULT_GRID

const int DEFAULT_GRID = 10
static

Definition at line 21 of file grid.cpp.

◆ defaultSnap

QT_BEGIN_NAMESPACE const bool defaultSnap = true
static

Definition at line 19 of file grid.cpp.

◆ defaultVisible

const bool defaultVisible = true
static

Definition at line 20 of file grid.cpp.

◆ KEY_DELTAX

const char * KEY_DELTAX = "gridDeltaX"
static

Definition at line 25 of file grid.cpp.

◆ KEY_DELTAY

const char * KEY_DELTAY = "gridDeltaY"
static

Definition at line 26 of file grid.cpp.

◆ KEY_SNAPX

const char * KEY_SNAPX = "gridSnapX"
static

Definition at line 23 of file grid.cpp.

◆ KEY_SNAPY

const char * KEY_SNAPY = "gridSnapY"
static

Definition at line 24 of file grid.cpp.

◆ KEY_VISIBLE

const char * KEY_VISIBLE = "gridVisible"
static

Definition at line 22 of file grid.cpp.