aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-03-17 16:06:31 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-03-17 09:49:58 +0100
commit1b41d31c6434feb6aa77fac8ba3fea1c9a16eaf7 (patch)
tree7727e042b72124be847a11818f3696056bc8d35e /src
parent1f8ecb6d05976e6dc8be01ba1a6f3068ed351971 (diff)
downloadkristall-1b41d31c6434feb6aa77fac8ba3fea1c9a16eaf7.tar.gz
rename PageMetadata struct to NamedUrl
PageMetadata is a little misleading. NamedUrl sounds stupid but is a bit more accurate
Diffstat (limited to 'src')
-rw-r--r--src/kristall.hpp4
-rw-r--r--src/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/kristall.hpp b/src/kristall.hpp
index 884cf03..49219cf 100644
--- a/src/kristall.hpp
+++ b/src/kristall.hpp
@@ -50,7 +50,7 @@ enum class AnsiEscRenderMode : int
strip = 2
};
-struct PageMetadata
+struct NamedUrl
{
QUrl location;
QString title;
@@ -215,7 +215,7 @@ namespace kristall
//! Opens a new window with the given list of urls.
//! If the list is empty, no new tab will spawned.
MainWindow * openNewWindow(QVector<QUrl> const & urls);
- MainWindow * openNewWindow(QVector<PageMetadata> const & urls);
+ MainWindow * openNewWindow(QVector<NamedUrl> const & urls);
//! Returns the number of currently open windows
int getWindowCount();
diff --git a/src/main.cpp b/src/main.cpp
index 41f994c..bd0afb3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -356,7 +356,7 @@ MainWindow * kristall::openNewWindow(QVector<QUrl> const & urls)
//! Opens a new window with the given list of urls.
//! If the list is empty, no new tab will spawned.
-MainWindow * kristall::openNewWindow(QVector<PageMetadata> const & urls)
+MainWindow * kristall::openNewWindow(QVector<NamedUrl> const & urls)
{
MainWindow * const window = new MainWindow(qApp);
@@ -706,7 +706,7 @@ int main(int argc, char *argv[])
{
settings.setArrayIndex(index);
- QVector<PageMetadata> urls;
+ QVector<NamedUrl> urls;
int tab_count = settings.beginReadArray("tabs");
for(int i = 0; i < tab_count; i++)