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
329QString 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()));
void animateClick()
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
MouseButtonPress
Type type() const const
QUrl getOpenFileUrl(QWidget *parent, const QString &caption, const QUrl &dir, const QString &filter, QString *selectedFilter, Options options, const QStringList &supportedSchemes)
Plain
Box
int key() const const
void setPixmap(const QPixmap &)
void setContentsMargins(const QMargins &margins)
Language language() const const
QString toString(QDate date, FormatType format) const const
QVariant data(int role) const const
virtual bool eventFilter(QObject *watched, QEvent *event)
QVariant property(const char *name) const const
QString tr(const char *sourceText, const char *disambiguation, int n)
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void drawText(const QPoint &position, const QString &text)
Base
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
int height() const const
bool isNull() const const
bool load(const QString &fileName, const char *format, Qt::ImageConversionFlags flags)
QRect rect() const const
QSize size() const const
QImage toImage() const const
int width() const const
int bottom() const const
int left() const const
int right() const const
int top() const const
int y() const const
Qt::MouseButton button() const const
int height() const const
int width() const const
Expanding
QString arg(Args &&... args) const const
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
AlignLeft
KeepAspectRatio
EditRole
Key_Enter
LeftButton
SmoothTransformation
ToolTip
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
T value() const const
void setGeometry(const QRect &)
height
void hide()
QPoint mapToGlobal(const QPoint &pos) const const
void setMaximumWidth(int maxw)
void show()
size
bool isVisible() const const
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.