ui: Show title bar at top and scroll bar at bottom in code view snippet list if necessary (issues #432, #479)
* Show title bar at top of snippet list if first file is cut off * Show scrollbar at bottom of snippet list if last snippet if cut off and horizontally scrollable * Extended scrollRequest API to different ScrollTarget modes * Fixed snippet extension broken if maximized first * Split off title bar functionality to separate class QtCodeFileTitleBar
This commit is contained in:
@@ -94,7 +94,8 @@ public:
|
||||
|
||||
void scrollToSnippetIfRequested();
|
||||
|
||||
void requestScroll(const FilePath& filePath, uint lineNumber, Id locationId, bool animated, bool onTop);
|
||||
void requestScroll(
|
||||
const FilePath& filePath, uint lineNumber, Id locationId, bool animated, QtCodeNavigateable::ScrollTarget target);
|
||||
|
||||
signals:
|
||||
void scrollRequest();
|
||||
@@ -146,7 +147,7 @@ private:
|
||||
: lineNumber(0)
|
||||
, locationId(0)
|
||||
, animated(false)
|
||||
, onTop(false)
|
||||
, target(QtCodeNavigateable::SCROLL_VISIBLE)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -155,7 +156,7 @@ private:
|
||||
Id locationId;
|
||||
|
||||
bool animated;
|
||||
bool onTop;
|
||||
QtCodeNavigateable::ScrollTarget target;
|
||||
};
|
||||
|
||||
void handleMessage(MessageCodeReference* message);
|
||||
|
||||
Reference in New Issue
Block a user