Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tusooa Zhu
Krita
Commits
f00c74d5
Commit
f00c74d5
authored
May 30, 2018
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify the 3rdparty page a bit
(cherry picked from commit
1ea81054
)
parent
e2a5181d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
+4
-20
libs/ui/dialogs/kis_about_application.cpp
libs/ui/dialogs/kis_about_application.cpp
+4
-16
libs/ui/dialogs/kis_about_application.h
libs/ui/dialogs/kis_about_application.h
+0
-4
No files found.
libs/ui/dialogs/kis_about_application.cpp
View file @
f00c74d5
...
...
@@ -23,7 +23,7 @@
#include <QTabWidget>
#include <QLabel>
#include <QTextEdit>
#include <Q
ScrollArea
>
#include <Q
TextBrowser
>
#include <QString>
#include <QVBoxLayout>
#include <QHBoxLayout>
...
...
@@ -160,12 +160,9 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
wdgTab
->
addTab
(
lblLicense
,
i18n
(
"License"
));
QScrollArea
*
scrollArea
=
new
QScrollArea
();
QLabel
*
lblThirdParty
=
new
QLabel
(
scrollArea
);
lblThirdParty
->
setTextFormat
(
Qt
::
RichText
);
connect
(
lblThirdParty
,
SIGNAL
(
linkActivated
(
QString
)),
SLOT
(
linkClicked
(
QString
)));
QTextBrowser
*
lblThirdParty
=
new
QTextBrowser
();
lblThirdParty
->
setOpenExternalLinks
(
true
);
QFile
thirdPartyFile
(
":/libraries.txt"
);
qDebug
()
<<
thirdPartyFile
.
exists
();
if
(
thirdPartyFile
.
open
(
QIODevice
::
ReadOnly
))
{
ba
=
thirdPartyFile
.
readAll
();
...
...
@@ -187,7 +184,7 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
thirdPartyHtml
.
append
(
"<ul></p></body></html>"
);
lblThirdParty
->
setText
(
thirdPartyHtml
);
}
wdgTab
->
addTab
(
scrollArea
,
i18n
(
"Third-party libraries"
));
wdgTab
->
addTab
(
lblThirdParty
,
i18n
(
"Third-party libraries"
));
QPushButton
*
bnClose
=
new
QPushButton
(
i18n
(
"Close"
));
...
...
@@ -203,12 +200,3 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
vlayout
->
addLayout
(
hlayout
);
}
void
KisAboutApplication
::
linkClicked
(
const
QString
&
url
)
{
QUrl
_url
=
QUrl
::
fromUserInput
(
url
);
if
(
!
_url
.
isLocalFile
())
{
QDesktopServices
::
openUrl
(
_url
);
}
}
libs/ui/dialogs/kis_about_application.h
View file @
f00c74d5
...
...
@@ -26,10 +26,6 @@ class KisAboutApplication : public QDialog
public:
explicit
KisAboutApplication
(
QWidget
*
parent
=
0
);
private
Q_SLOTS
:
void
linkClicked
(
const
QString
&
url
);
};
#endif // KIS_ABOUT_APPLICATION_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment