mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 09:30:41 +08:00
Add the Seer logo to the placeholder source file widget.
This commit is contained in:
@@ -628,14 +628,13 @@ void SeerEditorWidgetSourceArea::open (const QString& fullname, const QString& f
|
||||
|
||||
setDocumentTitle(_fullname);
|
||||
|
||||
// If the filename is null, don't do anything.
|
||||
if (_fullname == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the file is null, don't do anything.
|
||||
if (_file == "") {
|
||||
qDebug() << "'file' is null. Skipping.";
|
||||
// If the filename or file is null, it's a placeholder
|
||||
// widget. Show the Seer icon!
|
||||
if (_fullname == "" || _file == "") {
|
||||
setStyleSheet("QPlainTextEdit {"
|
||||
"background: url(:/seer/resources/seergdb_512x512.png) center no-repeat;"
|
||||
"border: none;"
|
||||
"}");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user