Sfoglia il codice sorgente

UI: Always hide VScrollArea horizontal scroll bar

There appears to be a bug with displaying the vertical scroll bar widget
where the horizontal scroll bar will show when it's not supposed to.
Fortunately it can be completely disabled.
jp9000 11 anni fa
parent
commit
ef6064b9b5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      obs/vertical-scroll-area.hpp

+ 1 - 0
obs/vertical-scroll-area.hpp

@@ -11,6 +11,7 @@ public:
 	inline VScrollArea(QWidget *parent = nullptr)
 	inline VScrollArea(QWidget *parent = nullptr)
 		: QScrollArea(parent)
 		: QScrollArea(parent)
 	{
 	{
+		setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
 	}
 	}
 
 
 protected:
 protected: