Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2016-01-13 13:42:49 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2016-01-13 13:44:36 +0300
commit31da3e98c91facc27bf240b52d2fd26883df6a27 (patch)
treed9666ee0570af41969ed2d6ab6784eb232301ac0 /src/gui/folderstatusdelegate.h
parent272755e1ec4856f3baa32bb6269c73feef6cbbd5 (diff)
Fix the folder option button click
The height adjustment done to place the button in the middle of the non-error area was only done for rendering. Make sure that we do the same adjustment when mapping click events as well. Also replace some wrong occurences of aliasMargin*2 for margin.
Diffstat (limited to 'src/gui/folderstatusdelegate.h')
-rw-r--r--src/gui/folderstatusdelegate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/folderstatusdelegate.h b/src/gui/folderstatusdelegate.h
index 4f0c05d4e..85dab6ec5 100644
--- a/src/gui/folderstatusdelegate.h
+++ b/src/gui/folderstatusdelegate.h
@@ -55,7 +55,8 @@ public:
/**
* return the position of the option button within the item
*/
- static QRect optionsButtonRect(const QRect& within, Qt::LayoutDirection direction);
+ static QRect optionsButtonRect(QRect within, Qt::LayoutDirection direction);
+ static int rootFolderHeightWithoutErrors(const QFontMetrics &fm, const QFontMetrics &aliasFm);
private:
static QString addFolderText();
};