diff --git a/client/assets/misc/noo.desktop b/client/assets/misc/noo.desktop
index 2e3fcec..d305df6 100644
--- a/client/assets/misc/noo.desktop
+++ b/client/assets/misc/noo.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
GenericName=App to make notes
Name=Noo
-Version=0.9.3
+Version=0.9.4
Exec=/usr/bin/noo
Comment=App to make notes
Icon=noo
diff --git a/client/attachmentslist.ui b/client/attachmentslist.ui
index 62fb18e..e42d1d6 100644
--- a/client/attachmentslist.ui
+++ b/client/attachmentslist.ui
@@ -32,7 +32,13 @@
Qt::CustomContextMenu
- QAbstractItemView::DropOnly
+ QAbstractItemView::DragDrop
+
+
+ QListView::Adjust
+
+
+ 4
QListView::IconMode
diff --git a/client/config.h b/client/config.h
index 666e2b3..f88e9c3 100644
--- a/client/config.h
+++ b/client/config.h
@@ -39,7 +39,7 @@
#define APP_VERSION_MAJOR 0
#define APP_VERSION_MINOR 9
-#define APP_VERSION_SUFFIX 3
+#define APP_VERSION_SUFFIX 4
//#ifdef TARGET_OSX
#define ICONS ":/assets/images"
diff --git a/client/mainwindow.cpp b/client/mainwindow.cpp
index 60ab64e..87b121e 100644
--- a/client/mainwindow.cpp
+++ b/client/mainwindow.cpp
@@ -219,25 +219,6 @@ void MainWindow::initClient()
mAttachmentsAction->setText(tr("Attachments"));
//ui->mMainToolbar->addAction(mAttachmentsAction);
connect(mAttachmentsAction, SIGNAL(triggered()), this, SLOT(showAttachments()));
-
- mAttachmentsLabel = new QLabel(this);
- mAttachmentsLabel->setMargin(5);
- mAttachmentsLabel->setOpenExternalLinks(false);
-
- QFont f = mAttachmentsLabel->font();
- f.setUnderline(true);
- mAttachmentsLabel->setFont(f);
- mAttachmentsLabel->setTextFormat(Qt::RichText);
- //mAttachmentsLabel->setStyleSheet("QLabel { color:rgb(142,178,218); }");
-
- QPalette newPal(palette());
- newPal.setColor(QPalette::Link, QColor(0x100, 0x100, 0x100));
- newPal.setColor(QPalette::LinkVisited, QColor(0x100, 0x100, 0x100));
- mAttachmentsLabel->setPalette(newPal);
-
- ui->mMainToolbar->addWidget(mAttachmentsLabel);
- connect(mAttachmentsLabel, SIGNAL(linkActivated(QString)), this, SLOT(showAttachments()));
- updateAttachmentsLabel(PTask());
}
#ifdef TARGET_OSX
@@ -648,12 +629,6 @@ void MainWindow::taskIndexChanged(const QModelIndex& current, const QModelIndex&
ui->mStartOrStopTrackingAction->setText(tr("Start tracking"));
}
- if (t)
- {
- mAttachmentsAction->setToolTip(tr("Attachments for ") + t->title());
- updateAttachmentsLabel(t);
- }
-
if (current.isValid())
{
// Reset search position
@@ -785,18 +760,6 @@ void MainWindow::prepareRecentTasksMenu(QMenu* submenu)
}
}
-void MainWindow::updateAttachmentsLabel(PTask t)
-{
- QString text = "" + tr("No attachments") + "";
-
- if (t)
- {
- if (t->getAttachmentCount())
- text = "" + QString::number(t->getAttachmentCount()) + " " + tr("attachments") + "";
- }
- mAttachmentsLabel->setText(text);
-}
-
void MainWindow::setupMainUi()
{
// Construct main UI
@@ -1437,9 +1400,6 @@ void MainWindow::showAttachments()
// Refresh current item in task tree to ensure attachment icon is shown/hidden
mTaskTreeModel->dataChanged(taskIndex, taskIndex);
-
- // Refresh attachments link
- updateAttachmentsLabel(t);
}
void MainWindow::checkForUpdates()
diff --git a/client/mainwindow.h b/client/mainwindow.h
index 091216e..538d40b 100644
--- a/client/mainwindow.h
+++ b/client/mainwindow.h
@@ -74,9 +74,6 @@ private:
// Attachments action
QAction* mAttachmentsAction = nullptr;
- // Attachments label
- QLabel* mAttachmentsLabel = nullptr;
-
// Delegate to draw task items in custom way
TaskItemDelegate mTaskItemDelegate;
@@ -142,7 +139,6 @@ private:
void installDockMenu();
void startTracking(PTask t);
void prepareRecentTasksMenu(QMenu* submenu);
- void updateAttachmentsLabel(PTask t);
// Builds main UI layut
void setupMainUi();
diff --git a/client/nodepropertieswidget.cpp b/client/nodepropertieswidget.cpp
index 625a0d8..234a8b6 100644
--- a/client/nodepropertieswidget.cpp
+++ b/client/nodepropertieswidget.cpp
@@ -7,6 +7,7 @@ NodePropertiesWidget::NodePropertiesWidget(QWidget *parent) :
ui(new Ui::NodePropertiesWidget)
{
ui->setupUi(this);
+ ui->mFileListView->setParentWidget(this);
}
NodePropertiesWidget::~NodePropertiesWidget()
diff --git a/client/noo.pro b/client/noo.pro
index 51ce325..82a5e98 100644
--- a/client/noo.pro
+++ b/client/noo.pro
@@ -11,7 +11,7 @@ TARGET = noo
TEMPLATE = app
# Send version to app
-VERSION = 0.9.3
+VERSION = 0.9.4
# VERSION_STRING = '\\"$${VERSION}\\"'
# DEFINES += APP_VERSION=\"$${VERSION_STRING}\"