Commit c8c9683d authored by Camilo higuita's avatar Camilo higuita

ui tweaks and android

parent 34ca0266
...@@ -47,22 +47,9 @@ Qt::ItemFlags BaseModel::flags(const QModelIndex &index) const ...@@ -47,22 +47,9 @@ Qt::ItemFlags BaseModel::flags(const QModelIndex &index) const
QHash<int, QByteArray> BaseModel::roleNames() const QHash<int, QByteArray> BaseModel::roleNames() const
{ {
QHash<int, QByteArray> names; QHash<int, QByteArray> names;
names[OWL::KEY::TITLE] = QString(OWL::KEYMAP[OWL::KEY::TITLE]).toUtf8(); for(auto key : OWL::KEYMAP.keys())
names[OWL::KEY::BODY] = QString(OWL::KEYMAP[OWL::KEY::BODY]).toUtf8(); names[key] = QString(OWL::KEYMAP[key]).toUtf8();
names[OWL::KEY::UPDATED] = QString(OWL::KEYMAP[OWL::KEY::UPDATED]).toUtf8();
names[OWL::KEY::FAV] = QString(OWL::KEYMAP[OWL::KEY::FAV]).toUtf8();
names[OWL::KEY::PIN] = QString(OWL::KEYMAP[OWL::KEY::PIN]).toUtf8();
names[OWL::KEY::COLOR] = QString(OWL::KEYMAP[OWL::KEY::COLOR]).toUtf8();
names[OWL::KEY::ID] = QString(OWL::KEYMAP[OWL::KEY::ID]).toUtf8();
names[OWL::KEY::IMAGE] = QString(OWL::KEYMAP[OWL::KEY::IMAGE]).toUtf8();
names[OWL::KEY::LINK] = QString(OWL::KEYMAP[OWL::KEY::LINK]).toUtf8();
names[OWL::KEY::PREVIEW] = QString(OWL::KEYMAP[OWL::KEY::PREVIEW]).toUtf8();
names[OWL::KEY::TAG] = QString(OWL::KEYMAP[OWL::KEY::TAG]).toUtf8();
names[OWL::KEY::URL] = QString(OWL::KEYMAP[OWL::KEY::URL]).toUtf8();
names[OWL::KEY::ADD_DATE] = QString(OWL::KEYMAP[OWL::KEY::ADD_DATE]).toUtf8();
names[OWL::KEY::URL] = QString(OWL::KEYMAP[OWL::KEY::ADD_DATE]).toUtf8();
return names; return names;
} }
......
#ifndef NOTESMODEL_H #ifndef BASEMODEL_H
#define NOTESMODEL_H #define BASEMODEL_H
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QList> #include <QList>
......
...@@ -4,8 +4,7 @@ import org.kde.mauikit 1.0 as Maui ...@@ -4,8 +4,7 @@ import org.kde.mauikit 1.0 as Maui
Maui.Menu Maui.Menu
{ {
implicitWidth: colorBar.implicitWidth + space.medium
width: colorBar.implicitWidth + space.medium
property bool isFav : false property bool isFav : false
property bool isPin: false property bool isPin: false
...@@ -72,7 +71,7 @@ Maui.Menu ...@@ -72,7 +71,7 @@ Maui.Menu
Maui.MenuItem Maui.MenuItem
{ {
width: parent.width width: parent.width
height: iconSizes.big + space.medium height: rowHeight
ColorsBar ColorsBar
{ {
......
...@@ -15,7 +15,7 @@ Row ...@@ -15,7 +15,7 @@ Row
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
height: size height: size
width: height width: height
radius: Math.max(height, width) radius: radiusV
border.color: Qt.darker(color, 1.7) border.color: Qt.darker(color, 1.7)
MouseArea MouseArea
...@@ -35,7 +35,7 @@ Row ...@@ -35,7 +35,7 @@ Row
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
height: size height: size
width: height width: height
radius: Math.max(height, width) radius: radiusV
border.color: Qt.darker(color, 1.7) border.color: Qt.darker(color, 1.7)
MouseArea MouseArea
...@@ -55,7 +55,7 @@ Row ...@@ -55,7 +55,7 @@ Row
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
height: size height: size
width: height width: height
radius: Math.max(height, width) radius: radiusV
border.color: Qt.darker(color, 1.7) border.color: Qt.darker(color, 1.7)
MouseArea MouseArea
...@@ -75,7 +75,7 @@ Row ...@@ -75,7 +75,7 @@ Row
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
height: size height: size
width: height width: height
radius: Math.max(height, width) radius: radiusV
border.color: Qt.darker(color, 1.7) border.color: Qt.darker(color, 1.7)
MouseArea MouseArea
...@@ -95,7 +95,7 @@ Row ...@@ -95,7 +95,7 @@ Row
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
height: size height: size
width: height width: height
radius: Math.max(height, width) radius: radiusV
border.color: Qt.darker(color, 1.7) border.color: Qt.darker(color, 1.7)
MouseArea MouseArea
...@@ -115,7 +115,7 @@ Row ...@@ -115,7 +115,7 @@ Row
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
height: size height: size
width: height width: height
radius: Math.max(height, width) radius: radiusV
border.color: Qt.darker(color, 1.7) border.color: Qt.darker(color, 1.7)
MouseArea MouseArea
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment