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
QHash<int, QByteArray> BaseModel::roleNames() const
{
QHash<int, QByteArray> names;
names[OWL::KEY::TITLE] = QString(OWL::KEYMAP[OWL::KEY::TITLE]).toUtf8();
names[OWL::KEY::BODY] = QString(OWL::KEYMAP[OWL::KEY::BODY]).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();
QHash<int, QByteArray> names;
for(auto key : OWL::KEYMAP.keys())
names[key] = QString(OWL::KEYMAP[key]).toUtf8();
return names;
}
......
#ifndef NOTESMODEL_H
#define NOTESMODEL_H
#ifndef BASEMODEL_H
#define BASEMODEL_H
#include <QAbstractListModel>
#include <QList>
......
......@@ -4,8 +4,7 @@ import org.kde.mauikit 1.0 as Maui
Maui.Menu
{
width: colorBar.implicitWidth + space.medium
implicitWidth: colorBar.implicitWidth + space.medium
property bool isFav : false
property bool isPin: false
......@@ -72,7 +71,7 @@ Maui.Menu
Maui.MenuItem
{
width: parent.width
height: iconSizes.big + space.medium
height: rowHeight
ColorsBar
{
......
......@@ -15,7 +15,7 @@ Row
anchors.verticalCenter: parent.verticalCenter
height: size
width: height
radius: Math.max(height, width)
radius: radiusV
border.color: Qt.darker(color, 1.7)
MouseArea
......@@ -35,7 +35,7 @@ Row
anchors.verticalCenter: parent.verticalCenter
height: size
width: height
radius: Math.max(height, width)
radius: radiusV
border.color: Qt.darker(color, 1.7)
MouseArea
......@@ -55,7 +55,7 @@ Row
anchors.verticalCenter: parent.verticalCenter
height: size
width: height
radius: Math.max(height, width)
radius: radiusV
border.color: Qt.darker(color, 1.7)
MouseArea
......@@ -75,7 +75,7 @@ Row
anchors.verticalCenter: parent.verticalCenter
height: size
width: height
radius: Math.max(height, width)
radius: radiusV
border.color: Qt.darker(color, 1.7)
MouseArea
......@@ -95,7 +95,7 @@ Row
anchors.verticalCenter: parent.verticalCenter
height: size
width: height
radius: Math.max(height, width)
radius: radiusV
border.color: Qt.darker(color, 1.7)
MouseArea
......@@ -115,7 +115,7 @@ Row
anchors.verticalCenter: parent.verticalCenter
height: size
width: height
radius: Math.max(height, width)
radius: radiusV
border.color: Qt.darker(color, 1.7)
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