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

(65b6df785e6b5d1abdb6212f0690918abde8bdda)

#include "qpixeltool.h"
#include <qapplication.h>
#include <qdir.h>
#include <qscreen.h>
#include <qpainter.h>
#include <qevent.h>
#include <qfiledialog.h>
#include <qmessagebox.h>
#include <qsettings.h>
#include <qmenu.h>
#include <qactiongroup.h>
#include <qimagewriter.h>
#include <qstandardpaths.h>
#include <qtextstream.h>
#include <qwindow.h>
#include <qmetaobject.h>
#include <private/qhighdpiscaling_p.h>
#include <qdebug.h>
#include <cmath>
+ Include dependency graph for qpixeltool.cpp:

Go to the source code of this file.

Functions

static QPoint initialPos (const QSettings &settings, QSize initialSize)
 
void render_string (QPainter *p, int w, int h, const QString &text, int flags)
 
static QImage imageLCDFilter (const QImage &image, int lcdMode)
 
static QActionaddCheckableAction (QMenu &menu, const QString &title, bool value, const QKeySequence &key)
 
static QActionaddCheckableAction (QMenu &menu, const QString &title, bool value, const QKeySequence &key, QActionGroup *group)
 
static QString pixelToolTitle (QPoint pos, const QScreen *screen, const QColor &currentColor)
 
QTextStreamoperator<< (QTextStream &str, const QScreen *screen)
 

Variables

static constexpr auto settingsGroup = "QPixelTool"_L1
 
static constexpr auto organization = "QtProject"_L1
 
static constexpr auto autoUpdateKey = "autoUpdate"_L1
 
static constexpr auto gridSizeKey = "gridSize"_L1
 
static constexpr auto gridActiveKey = "gridActive"_L1
 
static constexpr auto zoomKey = "zoom"_L1
 
static constexpr auto initialSizeKey = "initialSize"_L1
 
static constexpr auto positionKey = "position"_L1
 
static constexpr auto lcdModeKey = "lcdMode"_L1
 

Function Documentation

◆ addCheckableAction() [1/2]

static QAction * addCheckableAction ( QMenu & menu,
const QString & title,
bool value,
const QKeySequence & key )
static

Definition at line 364 of file qpixeltool.cpp.

◆ addCheckableAction() [2/2]

static QAction * addCheckableAction ( QMenu & menu,
const QString & title,
bool value,
const QKeySequence & key,
QActionGroup * group )
static

Definition at line 374 of file qpixeltool.cpp.

◆ imageLCDFilter()

static QImage imageLCDFilter ( const QImage & image,
int lcdMode )
static

Definition at line 125 of file qpixeltool.cpp.

◆ initialPos()

static QPoint initialPos ( const QSettings & settings,
QSize initialSize )
static

Definition at line 44 of file qpixeltool.cpp.

◆ operator<<()

QTextStream & operator<< ( QTextStream & str,
const QScreen * screen )

Definition at line 710 of file qpixeltool.cpp.

◆ pixelToolTitle()

static QString pixelToolTitle ( QPoint pos,
const QScreen * screen,
const QColor & currentColor )
inlinestatic

Definition at line 491 of file qpixeltool.cpp.

◆ render_string()

void render_string ( QPainter * p,
int w,
int h,
const QString & text,
int flags )

Definition at line 108 of file qpixeltool.cpp.

Variable Documentation

◆ autoUpdateKey

static constexpr auto autoUpdateKey = "autoUpdate"_L1
staticconstexpr

Definition at line 36 of file qpixeltool.cpp.

◆ gridActiveKey

static constexpr auto gridActiveKey = "gridActive"_L1
staticconstexpr

Definition at line 38 of file qpixeltool.cpp.

◆ gridSizeKey

static constexpr auto gridSizeKey = "gridSize"_L1
staticconstexpr

Definition at line 37 of file qpixeltool.cpp.

◆ initialSizeKey

static constexpr auto initialSizeKey = "initialSize"_L1
staticconstexpr

Definition at line 40 of file qpixeltool.cpp.

◆ lcdModeKey

static constexpr auto lcdModeKey = "lcdMode"_L1
staticconstexpr

Definition at line 42 of file qpixeltool.cpp.

◆ organization

static constexpr auto organization = "QtProject"_L1
staticconstexpr

Definition at line 35 of file qpixeltool.cpp.

◆ positionKey

static constexpr auto positionKey = "position"_L1
staticconstexpr

Definition at line 41 of file qpixeltool.cpp.

◆ settingsGroup

static constexpr auto settingsGroup = "QPixelTool"_L1
staticconstexpr

Definition at line 34 of file qpixeltool.cpp.

◆ zoomKey

static constexpr auto zoomKey = "zoom"_L1
staticconstexpr

Definition at line 39 of file qpixeltool.cpp.