Marble
FormattedTextWidget.cpp
58 d->m_textColorDialog->setCurrentColor(d->m_description->textCursor().charFormat().foreground().color());
60 int index = d->m_fontSize->findText(QString::number(d->m_description->textCursor().charFormat().font().pointSize()));
64 d->m_fontSize->lineEdit()->setText(QString::number(d->m_description->textCursor().charFormat().font().pointSize()));
67 connect(d->m_textColorDialog, &QColorDialog::colorSelected, this, &FormattedTextWidget::setTextCursorColor);
68 connect(d->m_isFormattedTextMode, &QAbstractButton::toggled, this, &FormattedTextWidget::toggleDescriptionEditMode);
69 connect(d->m_fontFamily, &QFontComboBox::currentFontChanged, this, &FormattedTextWidget::setTextCursorFont);
70 connect(d->m_fontSize, &QComboBox::editTextChanged, this, &FormattedTextWidget::setTextCursorFontSize);
73 connect(d->m_actionUnderlined, &QAction::toggled, this, &FormattedTextWidget::setTextCursorUnderlined);
74 connect(d->m_actionAddImage, &QAction::triggered, this, &FormattedTextWidget::addImageToDescription);
75 connect(d->m_actionAddLink, &QAction::triggered, this, &FormattedTextWidget::addLinkToDescription);
76 connect(d->m_description, &QTextEdit::cursorPositionChanged, this, &FormattedTextWidget::updateDescriptionEditButtons);
180 QString filename = QFileDialog::getOpenFileName(this, tr("Choose image"), tr("All Supported Files (*.png *.jpg *.jpeg)"));
210 disconnect(d->m_actionUnderlined, SIGNAL(toggled(bool)), this, SLOT(setTextCursorUnderlined(bool)));
211 disconnect(d->m_fontFamily, SIGNAL(currentFontChanged(QFont)), this, SLOT(setTextCursorFont(QFont)));
212 disconnect(d->m_fontSize, SIGNAL(editTextChanged(QString)), this, SLOT(setTextCursorFontSize(QString)));
231 int index = d->m_fontSize->findText(QString::number(d->m_description->textCursor().charFormat().font().pointSize()));
235 d->m_fontSize->lineEdit()->setText(QString::number(d->m_description->textCursor().charFormat().font().pointSize()));
239 connect(d->m_actionUnderlined, SIGNAL(toggled(bool)), this, SLOT(setTextCursorUnderlined(bool)));
240 connect(d->m_fontFamily, SIGNAL(currentFontChanged(QFont)), this, SLOT(setTextCursorFont(QFont)));
241 connect(d->m_fontSize, SIGNAL(editTextChanged(QString)), this, SLOT(setTextCursorFontSize(QString)));
This file contains the headers for MarbleWidget.
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
KGuiItem ok()
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
void toggled(bool checked)
void toggled(bool checked)
void triggered(bool checked)
const QColor & color() const const
ShowAlphaChannel
void colorSelected(const QColor &color)
void setOption(ColorDialogOption option, bool on)
void editTextChanged(const QString &text)
virtual int exec()
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
Normal
QString family() const const
void currentFontChanged(const QFont &font)
QPalette palette()
void fill(const QColor &color)
QString number(double n, char format, int precision)
int toInt(bool *ok, int base) const const
void setFontFamily(const QString &family)
QFont font() const const
bool fontItalic() const const
bool fontUnderline() const const
int fontWeight() const const
void setAnchor(bool anchor)
void setAnchorHref(const QString &value)
void setFont(const QFont &font, FontPropertiesInheritanceBehavior behavior)
void setFontItalic(bool italic)
void setFontPointSize(qreal size)
void setFontUnderline(bool underline)
void setFontWeight(int weight)
void insertImage(const QImage &image, const QString &name)
void mergeCharFormat(const QTextCharFormat &modifier)
void setCharFormat(const QTextCharFormat &format)
void cursorPositionChanged()
void clearForeground()
QBrush foreground() const const
void setForeground(const QBrush &brush)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void setupUi(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.