Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgtk3dialoghelpers.cpp File Reference
#include "qgtk3dialoghelpers.h"
#include "qgtk3theme.h"
#include <qeventloop.h>
#include <qwindow.h>
#include <qcolor.h>
#include <qdebug.h>
#include <qfont.h>
#include <qfileinfo.h>
#include <private/qguiapplication_p.h>
#include <private/qgenericunixservices_p.h>
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformfontdatabase.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <pango/pango.h>
#include "moc_qgtk3dialoghelpers.cpp"
+ Include dependency graph for qgtk3dialoghelpers.cpp:

Go to the source code of this file.

Classes

class  QGtk3Dialog
 

Macros

#define PREVIEW_WIDTH   256
 
#define PREVIEW_HEIGHT   512
 

Functions

static GtkFileChooserAction gtkFileChooserAction (const QSharedPointer< QFileDialogOptions > &options)
 
static QString qt_fontToString (const QFont &font)
 
static QFont qt_fontFromString (const QString &name)
 

Macro Definition Documentation

◆ PREVIEW_HEIGHT

#define PREVIEW_HEIGHT   512

Definition at line 38 of file qgtk3dialoghelpers.cpp.

◆ PREVIEW_WIDTH

#define PREVIEW_WIDTH   256

Definition at line 37 of file qgtk3dialoghelpers.cpp.

Function Documentation

◆ gtkFileChooserAction()

◆ qt_fontFromString()

static QFont qt_fontFromString ( const QString name)
static

Definition at line 561 of file qgtk3dialoghelpers.cpp.

References desc, font, QString::fromUtf8(), QString::isEmpty(), qUtf8Printable, QFont::setFamilies(), QFont::setPointSizeF(), QFont::setStyle(), QFont::setWeight(), QFont::StyleItalic, QFont::StyleNormal, and QFont::StyleOblique.

Referenced by QGtk3FontDialogHelper::currentFont().

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

◆ qt_fontToString()

static QString qt_fontToString ( const QFont font)
static

Definition at line 520 of file qgtk3dialoghelpers.cpp.

References QFont::Black, QFont::Bold, QFont::DemiBold, desc, QFont::ExtraBold, QFont::ExtraLight, font, QString::fromUtf8(), QFont::Light, QFont::Medium, QFont::Normal, QFont::pointSizeF(), QFontInfo::pointSizeF(), qUtf8Printable, str, QFont::style(), QFont::StyleItalic, QFont::StyleOblique, and QFont::weight().

Referenced by QGtk3FontDialogHelper::setCurrentFont().

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