kcalc
kcalcdisplay.cpp
Go to the documentation of this file.
275 QString tmp_str = (QApplication::clipboard())->text(bClipboard ? QClipboard::Clipboard : QClipboard::Selection);
522 const bool special = (string.contains(QLatin1String("nan")) || string.contains(QLatin1String("inf")));
524 // The decimal mode needs special treatment for two reasons, because: a) it uses KGlobal::locale() to get a localized
525 // format and b) it has possible numbers after the decimal place. Neither applies to Binary, Hexadecimal or Octal.
930 const int align = QStyle::visualAlignment(layoutDirection(), Qt::AlignRight | Qt::AlignVCenter);
967 return (style()->sizeFromContents(QStyle::CT_LineEdit, &option, sz.expandedTo(QApplication::globalStrut()), this));
Definition: kcalcdisplay.h:68
void setPointSize(int pointSize)
void setHeight(int height)
QString & append(QChar ch)
QString toQString(int width=-1, int precision=-1) const
Definition: knumber.cpp:601
const QPalette & palette() const
QString toUpper() const
void setColor(ColorGroup group, ColorRole role, const QColor &color)
iterator begin()
QRect contentsRect() const
static uint octalGrouping()
Get Octal figures will be separated by a whitespace after every Xth digit.
Definition: kcalc_settings.h:488
void setFocusPolicy(Qt::FocusPolicy policy)
QString & prepend(QChar ch)
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
void insert(int i, const T &value)
QString & remove(int position, int n)
void setHexadecimalGrouping(int digits)
Definition: kcalcdisplay.cpp:455
void setFrameStyle(int style)
void chop(int n)
void update()
static uint binaryGrouping()
Get Binary figures will be separated by a whitespace after every Xth digit.
Definition: kcalc_settings.h:469
QSize globalStrut()
void setStatusText(int i, const QString &text)
Definition: kcalcdisplay.cpp:633
bool isNull() const
Definition: kcalcdisplay.h:54
Definition: kcalcdisplay.h:53
void clear()
void initFrom(const QWidget *widget)
void setFont(const QFont &font)
QString number(int n, int base)
Qt::LayoutDirection layoutDirection() const
void changedText(const QString &)
QClipboard * clipboard()
Qt::MouseButton button() const
void setForegroundRole(QPalette::ColorRole role)
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
Definition: kcalcdisplay.h:55
Definition: kcalcdisplay.h:70
static void setDefaultFractionalInput(bool x)
Definition: knumber.cpp:226
void drawText(const QPointF &position, const QString &text)
Definition: kcalcdisplay.h:56
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
qulonglong toULongLong(bool *ok, int base) const
void changedAmount(const KNumber &)
void setSizePolicy(QSizePolicy)
void clicked()
Definition: knumber.h:30
QString toLower() const
void setFont(const QFont &)
void setFixedPrecision(int precision)
Definition: kcalcdisplay.cpp:402
int width(const QString &text, int len) const
char toLatin1() const
void stop()
Shadow frameShadow() const
static uint hexadecimalGrouping()
Get Hexadecimal figures will be separated by a whitespace after every Xth digit.
Definition: kcalc_settings.h:507
QString & replace(int position, int n, QChar after)
QFontMetrics fontMetrics() const
QSize expandedTo(const QSize &otherSize) const
Definition: kcalcdisplay.h:69
int height() const
int height() const
void adjust(int dx1, int dy1, int dx2, int dy2)
int length() const
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
void start(int msec)
Definition: kcalcdisplay.h:71
static bool twosComplement()
Get Whether to use Two's Complement for non-decimal numbers.
Definition: kcalc_settings.h:355
QSize size(int flags, const QString &text, int tabStops, int *tabArray) const
Qt::Alignment visualAlignment(Qt::LayoutDirection direction, QFlags< Qt::AlignmentFlag > alignment)
void setBackgroundRole(QPalette::ColorRole role)
Definition: kcalc_core.h:29
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString groupDigits(const QString &displayString, int numDigits)
Definition: kcalcdisplay.cpp:571
int size() const
void updateFromCore(const CalcEngine &core, bool store_result_in_history=false)
Definition: kcalcdisplay.cpp:108
bool empty() const
virtual bool event(QEvent *e)
int pointSize() const
Definition: knumber.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 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:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.