X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.cpp;h=a17c1a0d19ce24b4c5bcddc7a17ee1b38d6f9354;hp=9711755807bdd09e31ca10e9ce565513fdaabe52;hb=45645a28bdc5b6c1052b3e4cebf8cc80832d205a;hpb=c1cf157116de7fc3da96203aa6f03c38c7ebb650 diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index 97117558..a17c1a0d 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -575,24 +575,6 @@ void BufferView::filterTextChanged(const QString& filterString) on_configChanged(); // make sure collapsation is correct } -QSize BufferView::sizeHint() const -{ - return TreeViewTouch::sizeHint(); - - if (!model()) - return TreeViewTouch::sizeHint(); - - if (model()->rowCount() == 0) - return {120, 50}; - - int columnSize = 0; - for (int i = 0; i < model()->columnCount(); i++) { - if (!isColumnHidden(i)) - columnSize += sizeHintForColumn(i); - } - return {columnSize, 50}; -} - void BufferView::changeHighlight(BufferView::Direction direction) { // If for some weird reason we get a new delegate