Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgtk3dialoghelpers.cpp File Reference

(5dd29e7835df20b14cc96cf59338856a4fd43dac)

#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 40 of file qgtk3dialoghelpers.cpp.

◆ PREVIEW_WIDTH

#define PREVIEW_WIDTH   256

Definition at line 39 of file qgtk3dialoghelpers.cpp.

Function Documentation

◆ gtkFileChooserAction()

◆ qt_fontFromString()

static QFont qt_fontFromString ( const QString & name)
static

Definition at line 563 of file qgtk3dialoghelpers.cpp.

References 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 522 of file qgtk3dialoghelpers.cpp.

References QFont::Black, QFont::Bold, QFont::DemiBold, 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: