Kstars
moonphasecalendarwidget.cpp
72 ((cellWidth > cellHeight - 12) ? cellHeight - 12 : cellWidth) - 2; // FIXME: Using hard-coded fontsize
82 setGeometry(r.x(), r.y(), r.width(), r.height()); // FIXME: +1 / -1 pixel compensation. Not required at the moment.
112 void MoonPhaseCalendar::paintCell(QPainter *painter, int row, int col, const KColorScheme &colorScheme)
237 //If the cell day is the day of religious observance, then always color text red unless Custom overrides
300 painter->drawText(cell, (row == 0) ? Qt::AlignCenter : (Qt::AlignTop | Qt::AlignHCenter), cellText, &cell);
const QColor & color() const const
int weekDayOfPray() const
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition: kstarsdatetime.h:35
AlignCenter
void setPen(const QColor &color)
ShortDayName
ShortFormat
Selection
QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags)
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
WindowText
int right() const const
QRect toRect() const const
void drawRect(const QRectF &rectangle)
QFont systemFont(QFontDatabase::SystemFont type)
int width() const const
Window
int x() const const
int y() const const
ActiveText
void drawText(const QPointF &position, const QString &text)
State_Selected
int left() const const
Provides necessary information about the Moon. A subclass of SkyObject that provides information need...
Definition: ksmoon.h:25
int bottom() const const
int top() const const
KeepAspectRatio
QString & sprintf(const char *cformat,...)
QDate currentDate()
const QRect & rect() const const
void setBrush(const QBrush &brush)
QBrush foreground(ForegroundRole=NormalText) const
GeneralFont
int workingWeekEndDay() const
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
int height() const const
static KLocale * global()
virtual void drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
bool isValid(QStringView ifopt)
InactiveText
static const QImage & getImage(const QString &name)
Return texture image.
Definition: texturemanager.cpp:46
sizeHint
void drawLine(const QLineF &line)
#define I18N_NOOP(text)
void setBold(bool enable)
virtual void paintCell(QPainter *painter, const QRect &rect, const QDate &date) const const
void setFont(const QFont &font)
SmoothTransformation
NegativeText
int workingWeekStartDay() const
PE_PanelItemViewItem
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.