Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Choqok
Commits
39effecf
Commit
39effecf
authored
Mar 11, 2011
by
Mehrdad Momeny
Browse files
BUG:267852 First ask for KWallet, and then show up the splash screen ;)
Also, Splash screens are closed by clicking on them!
parent
b8f04988
Changes
1
Hide whitespace changes
Inline
Side-by-side
choqok/mainwindow.cpp
View file @
39effecf
...
...
@@ -63,17 +63,6 @@ MainWindow::MainWindow()
setAttribute
(
Qt
::
WA_DeleteOnClose
,
false
);
setAttribute
(
Qt
::
WA_QuitOnClose
,
false
);
if
(
Choqok
::
BehaviorSettings
::
showSplashScreen
()
){
KStandardDirs
*
stdDirs
=
KGlobal
::
dirs
();
QString
img
=
stdDirs
->
findResource
(
"data"
,
"choqok/images/splash_screen.png"
);
// kDebug()<<img;
QPixmap
splashpix
(
img
);
if
(
splashpix
.
isNull
())
kDebug
()
<<
"Pixmap is NULL"
;
m_splash
=
new
KSplashScreen
(
splashpix
,
Qt
::
WindowStaysOnTopHint
);
m_splash
->
show
();
}
timelineTimer
=
new
QTimer
(
this
);
setWindowTitle
(
i18n
(
"Choqok"
)
);
mainWidget
=
new
KTabWidget
(
this
);
...
...
@@ -115,7 +104,6 @@ MainWindow::MainWindow()
if
(
pos
.
x
()
!=
-
1
&&
pos
.
y
()
!=
-
1
)
{
move
(
pos
);
}
}
MainWindow
::~
MainWindow
()
...
...
@@ -126,6 +114,18 @@ MainWindow::~MainWindow()
void
MainWindow
::
loadAllAccounts
()
{
kDebug
();
if
(
Choqok
::
BehaviorSettings
::
showSplashScreen
()
){
KStandardDirs
*
stdDirs
=
KGlobal
::
dirs
();
QString
img
=
stdDirs
->
findResource
(
"data"
,
"choqok/images/splash_screen.png"
);
// kDebug()<<img;
QPixmap
splashpix
(
img
);
if
(
splashpix
.
isNull
())
kDebug
()
<<
"Pixmap is NULL"
;
m_splash
=
new
KSplashScreen
(
splashpix
,
Qt
::
WindowStaysOnTopHint
);
m_splash
->
show
();
}
settingsChanged
();
QList
<
Choqok
::
Account
*>
accList
=
Choqok
::
AccountManager
::
self
()
->
accounts
();
int
count
=
microblogCounter
=
accList
.
count
();
...
...
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