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

(b89284922538eb5c912519469479ec02d2864e6c)

#include "grid_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 >
static bool valueFromVariantMap ( const QVariantMap & v,
const QString & key,
T & value )
inlinestatic

Definition at line 36 of file grid.cpp.

◆ valueToVariantMap()

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

Definition at line 29 of file grid.cpp.

Variable Documentation

◆ DEFAULT_GRID

static const int DEFAULT_GRID = 10
static

Definition at line 20 of file grid.cpp.

◆ defaultSnap

static QT_BEGIN_NAMESPACE const bool defaultSnap = true
static

Definition at line 18 of file grid.cpp.

◆ defaultVisible

static const bool defaultVisible = true
static

Definition at line 19 of file grid.cpp.

◆ KEY_DELTAX

static const char * KEY_DELTAX = "gridDeltaX"
static

Definition at line 24 of file grid.cpp.

◆ KEY_DELTAY

static const char * KEY_DELTAY = "gridDeltaY"
static

Definition at line 25 of file grid.cpp.

◆ KEY_SNAPX

static const char * KEY_SNAPX = "gridSnapX"
static

Definition at line 22 of file grid.cpp.

◆ KEY_SNAPY

static const char * KEY_SNAPY = "gridSnapY"
static

Definition at line 23 of file grid.cpp.

◆ KEY_VISIBLE

static const char * KEY_VISIBLE = "gridVisible"
static

Definition at line 21 of file grid.cpp.