Changeset View
Changeset View
Standalone View
Standalone View
src/mode/katemodemenulist.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 71 | { | |||
---|---|---|---|---|---|
111 | 111 | | |||
112 | m_layoutList->addWidget(m_list, 0, 0, Qt::AlignLeft); | 112 | m_layoutList->addWidget(m_list, 0, 0, Qt::AlignLeft); | ||
113 | 113 | | |||
114 | // Add scroll bar and set margin. | 114 | // Add scroll bar and set margin. | ||
115 | // Overlap scroll bar above the list widget. | 115 | // Overlap scroll bar above the list widget. | ||
116 | if (overlapScrollBar()) { | 116 | if (overlapScrollBar()) { | ||
117 | QHBoxLayout *layoutScrollBar = new QHBoxLayout(); | 117 | QHBoxLayout *layoutScrollBar = new QHBoxLayout(); | ||
118 | layoutScrollBar->addWidget(m_scroll); | 118 | layoutScrollBar->addWidget(m_scroll); | ||
119 | layoutScrollBar->setMargin(2); | 119 | layoutScrollBar->setContentsMargins(2, 2, 2, 2); | ||
120 | m_layoutList->addLayout(layoutScrollBar, 0, 0, Qt::AlignRight); | 120 | m_layoutList->addLayout(layoutScrollBar, 0, 0, Qt::AlignRight); | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | layoutSearchBar->addWidget(m_searchBar); | 123 | layoutSearchBar->addWidget(m_searchBar); | ||
124 | 124 | | |||
125 | if (searchBarPos == Top) { | 125 | if (searchBarPos == Top) { | ||
126 | layoutContainer->addLayout(layoutSearchBar); | 126 | layoutContainer->addLayout(layoutSearchBar); | ||
127 | } | 127 | } | ||
▲ Show 20 Lines • Show All 895 Lines • Show Last 20 Lines |