HEIGHT + frame_width * 2);
}
+QSize EmulLCD::minimumSizeHint() const
+{
+ return sizeHint();
+}
void EmulLCD::paintEvent(QPaintEvent * /*event*/)
{
protected:
virtual QSizePolicy sizePolicy() const;
virtual QSize sizeHint() const;
+ virtual QSize minimumSizeHint() const;
virtual void paintEvent(QPaintEvent *event);
// Operations
QColor fg_color, bg_color;
/// Pixel storage
- unsigned char raster[(WIDTH * HEIGHT) / 8];
+ unsigned char raster[(WIDTH + 7 / 8) * HEIGHT];
};
#endif // DRV_LCD_GFX_QT_H
{
setWindowTitle(tr("BeRTOS Emul Demo"));
setAttribute(Qt::WA_DeleteOnClose);
- setFixedSize(280,240);
// Create the menu bar
QMenu *file_menu = menuBar()->addMenu(tr("&File"));