Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/src/view.cpp
| Show All 31 Lines | |||||
| 32 | #include <KLocalizedString> | 32 | #include <KLocalizedString> | ||
| 33 | 33 | | |||
| 34 | using namespace CuttleFish; | 34 | using namespace CuttleFish; | ||
| 35 | 35 | | |||
| 36 | View::View(const QString &category, QCommandLineParser &parser, QWindow *parent) | 36 | View::View(const QString &category, QCommandLineParser &parser, QWindow *parent) | ||
| 37 | : QQuickView(parent), | 37 | : QQuickView(parent), | ||
| 38 | m_browserRootItem(nullptr) | 38 | m_browserRootItem(nullptr) | ||
| 39 | { | 39 | { | ||
| 40 | setMinimumHeight(800); | ||||
| 41 | setMinimumWidth(800); | ||||
ngraham: Probably makes sense to reduce this to 600 if we can get the layout to adjust adequately. | |||||
There's already icon names that are too long for the minimum 800 width window, so I wouldn't decrease it even further. cblack: There's already icon names that are too long for the minimum 800 width window, so I wouldn't… | |||||
| 42 | | ||||
| 40 | setResizeMode(QQuickView::SizeRootObjectToView); | 43 | setResizeMode(QQuickView::SizeRootObjectToView); | ||
| 41 | QQuickWindow::setDefaultAlphaBuffer(true); | 44 | QQuickWindow::setDefaultAlphaBuffer(true); | ||
| 42 | 45 | | |||
| 43 | KDeclarative::KDeclarative kdeclarative; | 46 | KDeclarative::KDeclarative kdeclarative; | ||
| 44 | kdeclarative.setDeclarativeEngine(engine()); | 47 | kdeclarative.setDeclarativeEngine(engine()); | ||
| 45 | kdeclarative.setTranslationDomain(QStringLiteral("cuttlefish")); | 48 | kdeclarative.setTranslationDomain(QStringLiteral("cuttlefish")); | ||
| 46 | kdeclarative.setupBindings(); | 49 | kdeclarative.setupBindings(); | ||
| 47 | 50 | | |||
| Show All 27 Lines | |||||
Probably makes sense to reduce this to 600 if we can get the layout to adjust adequately.