mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
Corregida la navegaci?n (up) en las p?ginas
Corregido el ancho de los botones "importing browse"
This commit is contained in:
@ -280,4 +280,28 @@ void HttpSession::setDisplayType(const QString & display)
|
||||
{
|
||||
dataPtr->yacreaderSessionData.display = display;
|
||||
}
|
||||
}
|
||||
|
||||
void HttpSession::clearNavigationPath()
|
||||
{
|
||||
if(dataPtr)
|
||||
dataPtr->yacreaderSessionData.navigationPath.clear();
|
||||
}
|
||||
|
||||
int HttpSession::popPage()
|
||||
{
|
||||
if(dataPtr)
|
||||
return dataPtr->yacreaderSessionData.navigationPath.pop();
|
||||
}
|
||||
|
||||
void HttpSession::pushPage(int page)
|
||||
{
|
||||
if(dataPtr)
|
||||
dataPtr->yacreaderSessionData.navigationPath.push(page);
|
||||
}
|
||||
|
||||
int HttpSession::topPage()
|
||||
{
|
||||
if(dataPtr)
|
||||
return dataPtr->yacreaderSessionData.navigationPath.top();
|
||||
}
|
@ -114,6 +114,11 @@ public:
|
||||
void setDeviceType(const QString & device);
|
||||
void setDisplayType(const QString & display);
|
||||
|
||||
void clearNavigationPath();
|
||||
int popPage();
|
||||
void pushPage(int page);
|
||||
int topPage();
|
||||
|
||||
private:
|
||||
|
||||
struct YACReaderSessionData {
|
||||
@ -125,6 +130,9 @@ private:
|
||||
QString device;
|
||||
QString display;
|
||||
qulonglong comicId;
|
||||
|
||||
QStack<int> navigationPath;
|
||||
|
||||
Comic * comic;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user