Redo the console window. Log is now a page. Console window has relevant pages.
Dirty fix for screenshot thumbnail generation. Needs more QTimer.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
#include <QRect>
|
||||
|
||||
IconLabel::IconLabel(QWidget *parent, QIcon icon, QSize size)
|
||||
: QWidget(parent), m_icon(icon), m_size(size)
|
||||
: QWidget(parent), m_size(size), m_icon(icon)
|
||||
{
|
||||
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
||||
}
|
||||
|
@ -138,6 +138,12 @@ void PageContainer::addButtons(QWidget *buttons)
|
||||
m_layout->addWidget(buttons, 2, 0, 1, 2);
|
||||
}
|
||||
|
||||
void PageContainer::addButtons(QLayout *buttons)
|
||||
{
|
||||
m_layout->addLayout(buttons, 2, 0, 1, 2);
|
||||
}
|
||||
|
||||
|
||||
void PageContainer::showPage(int row)
|
||||
{
|
||||
if(row != -1)
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <QModelIndex>
|
||||
#include <gui/pages/BasePageProvider.h>
|
||||
|
||||
class QLayout;
|
||||
class IconLabel;
|
||||
class QSortFilterProxyModel;
|
||||
class PageModel;
|
||||
@ -36,6 +37,7 @@ public:
|
||||
virtual ~PageContainer() {};
|
||||
|
||||
void addButtons(QWidget * buttons);
|
||||
void addButtons(QLayout * buttons);
|
||||
bool requestClose(QCloseEvent *event);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user