KProperty
pixmapedit.cpp
177 KRecentDirs::add(":lastVisitedImagePath", url.adjusted(QUrl::RemoveFilename|QUrl::StripTrailingSlash).path());
199 const int areaNumber = std::distance(areas.begin(), std::max_element(areas.begin(), areas.end()));
247 if (ev->type() == QEvent::MouseButtonPress && static_cast<QMouseEvent*>(ev)->button() == Qt::LeftButton) {
260 if ((e->key() == Qt::Key_Enter) || (e->key() == Qt::Key_Space) || (e->key() == Qt::Key_Return)) {
315 if (d->scaledPixmap.height() > r2.height() || d->scaledPixmap.width() > r2.width()) { //scale down
329 QString KPropertyPixmapDelegate::valueToString(const QVariant& value, const QLocale &locale) const
341 return QObject::tr("%1x%2px").arg(locale.toString(pm.width())).arg(locale.toString(pm.height()));
QString caption()
MouseButtonPress
QEvent::Type type() const const
void setContentsMargins(int left, int top, int right, int bottom)
int width() const const
int width() const const
QString toString(qlonglong i) const const
int right() const const
QPoint mapToGlobal(const QPoint &pos) const const
LeftButton
T value() const const
QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags)
int y() const const
Expanding
QString tr(const char *sourceText, const char *disambiguation, int n)
AlignLeft
QUrl getOpenFileUrl(QWidget *parent, const QString &caption, const QUrl &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options, const QStringList &supportedSchemes)
size
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
int top() const const
int left() const const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
EditRole
bool isEmpty() const const
void drawText(const QPointF &position, const QString &text)
QLocale::Language language() const const
virtual bool eventFilter(QObject *watched, QEvent *event)
bool load(const QString &fileName, const char *format, Qt::ImageConversionFlags flags)
Plain
int key() const const
bool isNull() const const
int height() const const
QVariant data(int role) const const
Base
QDesktopWidget * desktop()
const QRect availableGeometry(const QWidget *widget) const const
KeepAspectRatio
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
int height() const const
int bottom() const const
QString fromLatin1(const char *str, int size)
QImage toImage() const const
ToolTip
SmoothTransformation
Key_Enter
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
Box
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:07:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:07:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.