KDE3Support
k3aboutdialog.cpp
Go to the documentation of this file.
287 layoutType &= ~(K3AboutDialog::ImageLeft|K3AboutDialog::ImageRight|K3AboutDialog::Tabbed|K3AboutDialog::Plain);
684 const QString msg1 = i18n("<html><font size=\"5\">%1</font><br/><b>version %2</b><br/>Using KDE %3</html>", appName, version,
QLayout * layout() const
void setUrl(const QString &text, const QString &header=QString(), bool update=true)
Definition: k3aboutdialog.cpp:219
void addImage(const QString &fileName, Qt::Alignment alignment=Qt::AlignLeft)
Definition: k3aboutdialog.cpp:870
K3AboutContainer can be used to make a application specific AboutDialog.
Definition: k3aboutdialog.h:46
QString i18n(const char *text)
void setProduct(const QString &appName, const QString &version, const QString &author, const QString &year)
(Constructor II only) Prints the application name, KDE version, author, a copyright sign and a year s...
Definition: k3aboutdialog.cpp:1199
void setVersion(const QString &name)
Sets the text describing the version.
Definition: k3aboutdialog.cpp:981
void setImage(const QString &fileName)
(Constructor II only) Define an image to be shown in the dialog.
Definition: k3aboutdialog.cpp:1169
void setPointSize(int pointSize)
void setHeight(int height)
bool isRightToLeft()
QFrame * addPage(const QString &title)
(Constructor II only) Adds an empty page to a tab box.
Definition: k3aboutdialog.cpp:1148
void setWidget(QWidget *widget)
const QPalette & palette() const
int width() const
void setModal(bool modal)
void insertStretch(int index, int stretch)
void setEmail(const QString &text, const QString &header=QString(), bool update=true)
Definition: k3aboutdialog.cpp:209
QFrame * addTextPage(const QString &title, const QString &text, bool richText=false, int numLines=10)
(Constructor II only) Adds a text page to a tab box.
Definition: k3aboutdialog.cpp:1118
int IconSize(KIconLoader::Group group)
void setVersion(const QString &name)
(Constructor I only) Sets the text describing the version.
Definition: k3aboutdialog.cpp:1110
K3AboutContainer * addScrolledContainerPage(const QString &title, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
Definition: k3aboutdialog.cpp:530
K3AboutContainer * addContainerPage(const QString &title, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
Definition: k3aboutdialog.cpp:512
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
bool isEmpty() const
void setHtml(const QString &text)
void setProduct(const QString &appName, const QString &version, const QString &author, const QString &year)
Definition: k3aboutdialog.cpp:670
K3AboutContainer(QWidget *parent=0, int margin=0, int spacing=0, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
Definition: k3aboutdialog.cpp:709
QString label(StandardShortcut id)
void setPixmap(const QPixmap &)
void adjust()
Adjust the minimum size (after setting the properties of the image and the labels.
Definition: k3aboutdialog.cpp:907
void setMinimumWidth(int minw)
const QObjectList & children() const
K3AboutContainerBase * mContainerBase
The main widget (Constructor II)
Definition: k3aboutdialog.h:529
Definition: k3aboutdialog.h:271
int exec()
void setAlignment(QFlags< Qt::AlignmentFlag >)
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void setMaintainer(const QString &name, const QString &email, const QString &url, const QString &work)
(Constructor I only) Sets the maintainer's name and email address.
Definition: k3aboutdialog.cpp:1083
virtual QSize minimumSizeHint() const
void addContributor(const QString &name, const QString &email, const QString &url, const QString &work)
Shows this person as one of the major contributors.
Definition: k3aboutdialog.cpp:969
QFrame * addLicensePage(const QString &title, const QString &text, int numLines=10)
Definition: k3aboutdialog.cpp:487
virtual QSize minimumSizeHint() const
Definition: k3aboutdialog.cpp:815
bool isNull() const
void setFrameStyle(int style)
void setPlainText(const QString &text)
void addSpacing(int size)
void setLineWidth(int)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
typedef Alignment
void adjustSize()
#define KDE_VERSION_STRING
Definition: k3aboutdialog.h:272
void setParent(QWidget *parent)
Definition: k3aboutdialog.h:269
void update()
void setSpacing(int spacing)
void setGeometry(int x, int y, int w, int h)
bool isNull() const
void setProgramLogo(const QString &fileName)
Definition: k3aboutdialog.cpp:617
K3AboutContributor(QWidget *parent=0, const QString &username=QString(), const QString &email=QString(), const QString &url=QString(), const QString &work=QString(), bool showHeader=false, bool showFrame=true, bool showBold=false)
Definition: k3aboutdialog.cpp:163
void setTitle(const QString &title)
(Constructor II only) Sets a title (not caption) in the uppermost area of the dialog.
Definition: k3aboutdialog.cpp:1163
int width() const
void setBold(bool enable)
QSize size() const
QSize minimumSize() const
int pointSize() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
Definition: k3aboutdialog.h:267
void append(const T &value)
void setImageBackgroundColor(const QColor &color)
(Constructor II only) The image has a minimum size, but is centered within an area if the dialog box ...
Definition: k3aboutdialog.cpp:1187
void setMaintainer(const QString &name, const QString &email, const QString &url, const QString &work)
Sets the maintainers name and email address.
Definition: k3aboutdialog.cpp:959
void fontChange(const QFont &oldFont)
Definition: k3aboutdialog.cpp:427
K3AboutContainer * addContainer(Qt::Alignment childAlignment, Qt::Alignment innerAlignment)
(Constructor II only) Adds a container.
Definition: k3aboutdialog.cpp:1155
void setRowStretch(int row, int stretch)
void setLayout(QLayout *layout)
void setAuthor(const QString &name, const QString &email, const QString &url, const QString &work)
Sets the author's name and email address.
Definition: k3aboutdialog.cpp:950
Definition: k3aboutdialog.h:268
K3AboutDialog(QWidget *parent=0)
The standard Qt constructor (Constructor I).
Definition: k3aboutdialog.cpp:1030
QFrame * addLicensePage(const QString &title, const QString &text, int numLines=10)
(Constructor II only) Adds a license page to a tab box.
Definition: k3aboutdialog.cpp:1125
void setImage(const QString &fileName)
Definition: k3aboutdialog.cpp:598
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
void setWidth(int width)
K3AboutContainerBase(int layoutType, QWidget *parent=0)
Definition: k3aboutdialog.cpp:276
bool isEmpty() const
QList< K3AboutContributor * > contributors
A set of people who contributed to the application.
Definition: k3aboutdialog.h:217
void setObjectName(const QString &name)
bool isEmpty() const
K3AboutContainer * addScrolledContainerPage(const QString &title, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
(Constructor II only) Adds a container inside a QScrollView to a tab box.
Definition: k3aboutdialog.cpp:1140
int addTab(QWidget *page, const QString &label)
void move(int x, int y)
void setName(const QString &text, const QString &header=QString(), bool update=true)
Definition: k3aboutdialog.cpp:200
static void imageUrl(QWidget *parent, const QString &caption, const QString &path, const QColor &imageColor, const QString &url)
Create a modal dialog with an image in the upper area with a URL link below.
Definition: k3aboutdialog.cpp:1206
void setText(const QString &)
virtual QSize sizeHint() const
void hide()
void setMargin(int margin)
void setProgramLogo(const QString &fileName)
Overloaded version of setProgramLogo(const QPixmap& pixmap).
Definition: k3aboutdialog.cpp:1175
Definition: k3aboutdialog.h:266
void setLogo(const QPixmap &logo)
Sets the image as the application logo.
Definition: k3aboutdialog.cpp:945
void setOpenExternalLinks(bool open)
bool isNull() const
const QFont & font() const
K3AboutContainer * addContainerPage(const QString &title, Qt::Alignment childAlignment=Qt::AlignCenter, Qt::Alignment innerAlignment=Qt::AlignCenter)
(Constructor II only) Adds a container to a tab box.
Definition: k3aboutdialog.cpp:1132
virtual QSize sizeHint() const
void setFrameShadow(Shadow)
void setLineWrapMode(LineWrapMode mode)
void addLayout(QLayout *layout, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void addTitle(const QString &title, Qt::Alignment alignment=Qt::AlignLeft, bool showframe=false, bool showBold=false)
Definition: k3aboutdialog.cpp:850
void setImageBackgroundColor(const QColor &color)
Definition: k3aboutdialog.cpp:641
bool activate()
QByteArray toLatin1() const
static QFont generalFont()
QFontMetrics fontMetrics() const
void addContributor(const QString &name, const QString &email, const QString &url, const QString &work)
(Constructor I only) Show this person as one of the major contributors.
Definition: k3aboutdialog.cpp:1101
void setUsesScrollButtons(bool useButtons)
void addStretch(int stretch)
QSize expandedTo(const QSize &otherSize) const
void setColumnStretch(int column, int stretch)
unsigned int version()
QWidget * parentWidget() const
QFrame * addTextPage(const QString &title, const QString &text, bool richText=false, int numLines=10)
Definition: k3aboutdialog.cpp:451
void addItem(QLayoutItem *item, int row, int column, int rowSpan, int columnSpan, QFlags< Qt::AlignmentFlag > alignment)
virtual QSize sizeHint() const
int height() const
void setMinimumHeight(int minh)
void setWork(const QString &text, const QString &header=QString(), bool update=true)
Definition: k3aboutdialog.cpp:229
void setImageFrame(bool state)
(Constructor II only) Enables or disables a frame around the image.
Definition: k3aboutdialog.cpp:1193
spacing
void setAuthor(const QString &name, const QString &email, const QString &url, const QString &work)
(Constructor I only) Sets the author's name and email address.
Definition: k3aboutdialog.cpp:1092
KGuiItem cont()
void setAutoFillBackground(bool enabled)
void show()
void setLogo(const QPixmap &logo)
(Constructor I only) Sets the image as the application logo.
Definition: k3aboutdialog.cpp:1075
void setReadOnly(bool ro)
bool isWidgetType() const
void setBackgroundRole(QPalette::ColorRole role)
K3AboutContainer * addContainer(Qt::Alignment childAlignment, Qt::Alignment innerAlignment)
Definition: k3aboutdialog.cpp:575
void addPerson(const QString &name, const QString &email, const QString &url, const QString &task, bool showHeader=false, bool showframe=false, bool showBold=false)
Definition: k3aboutdialog.cpp:838
void setSpacing(int spacing)
int pointSize() const
height
Definition: k3aboutdialog.h:270
static QFont fixedFont()
void addLayout(QLayout *layout, int stretch)
virtual void fontChange(const QFont &oldFont)
Definition: k3aboutdialog.cpp:257
QFrame * addEmptyPage(const QString &title)
Definition: k3aboutdialog.cpp:558
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.