WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
inishell
Commits
9972a5d0
Commit
9972a5d0
authored
Aug 30, 2020
by
Michael Reisecker
Browse files
Two consts
parent
f3dd4c72
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gui/PreviewEdit.cc
View file @
9972a5d0
...
...
@@ -109,7 +109,7 @@ void PreviewEdit::resizeEvent(QResizeEvent *event)
*/
void
PreviewEdit
::
dragMoveEvent
(
QDragMoveEvent
*
event
)
{
QMainWindow
*
preview_window
(
qobject_cast
<
QMainWindow
*>
(
this
->
parent
()
->
parent
()
->
parent
()));
//QStackedWidget->QTabWidget->PreviewWindow
const
QMainWindow
*
preview_window
(
qobject_cast
<
QMainWindow
*>
(
this
->
parent
()
->
parent
()
->
parent
()));
//QStackedWidget->QTabWidget->PreviewWindow
if
(
preview_window
)
{
if
(
event
->
mimeData
()
->
hasUrls
())
{
preview_window
->
statusBar
()
->
showMessage
(
tr
(
"Drop files over the menu or tab titles to open."
));
...
...
src/gui/PreviewWindow.cc
View file @
9972a5d0
...
...
@@ -245,7 +245,7 @@ void PreviewWindow::addIniTab(const QString& infile)
preview_editor
->
setPlainText
(
ini_contents
);
//without undo history --> can't undo to empty
const
QString
loaded_file
=
infile
.
isNull
()
?
getMainWindow
()
->
getIni
()
->
getFilename
()
:
infile
;
QFileInfo
file_info
(
loaded_file
);
const
QFileInfo
file_info
(
loaded_file
);
QString
file_name
(
file_info
.
fileName
());
QString
file_path
;
if
(
file_info
.
exists
())
//avoid warning
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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