Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Vivy
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Validations
648084fe
Vérifiée
Valider
648084fe
rédigé
1 sept. 2021
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
LOG: Update the objects that use the LOG API
parent
acf722da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
src/UI/AboutWindow.cc
+1
-1
1 ajout, 1 suppression
src/UI/AboutWindow.cc
src/UI/MainWindow.cc
+7
-4
7 ajouts, 4 suppressions
src/UI/MainWindow.cc
src/VivyApplication.cc
+2
-2
2 ajouts, 2 suppressions
src/VivyApplication.cc
avec
10 ajouts
et
7 suppressions
src/UI/AboutWindow.cc
+
1
−
1
Voir le fichier @
648084fe
...
@@ -55,7 +55,7 @@ AboutWindow::LicenceLabel::LicenceLabel(QWidget *parent, const QString &url,
...
@@ -55,7 +55,7 @@ AboutWindow::LicenceLabel::LicenceLabel(QWidget *parent, const QString &url,
const
Qt
::
TextFormat
format
)
const
Qt
::
TextFormat
format
)
:
QTextEdit
(
parent
)
:
QTextEdit
(
parent
)
{
{
VIVY_LOG_CTOR
()
<<
"Creating label for licence
'
"
<<
url
<<
'\''
;
VIVY_LOG_CTOR
()
<<
"Creating label for licence "
<<
VIVY_LOG_QUOTED
(
url
)
;
QFile
content
(
url
);
QFile
content
(
url
);
if
(
!
content
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
if
(
!
content
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
throw
std
::
runtime_error
(
"Failed to open file that should be accessible"
);
throw
std
::
runtime_error
(
"Failed to open file that should be accessible"
);
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/UI/MainWindow.cc
+
7
−
4
Voir le fichier @
648084fe
...
@@ -300,7 +300,8 @@ MainWindow::closeDocument(int index) noexcept
...
@@ -300,7 +300,8 @@ MainWindow::closeDocument(int index) noexcept
&
MainWindow
::
documentViewActionsChanged
);
&
MainWindow
::
documentViewActionsChanged
);
if
(
documentToClose
)
{
if
(
documentToClose
)
{
logDebug
()
<<
"Delete document view "
<<
documentToClose
->
getDocumentTabName
();
logDebug
()
<<
"Delete document view "
<<
VIVY_LOG_QUOTED
(
documentToClose
->
getDocumentTabName
());
documentToClose
->
closeDocument
();
documentToClose
->
closeDocument
();
delete
documentToClose
;
delete
documentToClose
;
}
}
...
@@ -331,7 +332,7 @@ MainWindow::openDocument() noexcept
...
@@ -331,7 +332,7 @@ MainWindow::openDocument() noexcept
Utils
::
DocumentType
fileType
;
Utils
::
DocumentType
fileType
;
if
(
!
Utils
::
detectDocumentType
(
fileInfo
,
&
fileType
))
{
if
(
!
Utils
::
detectDocumentType
(
fileInfo
,
&
fileType
))
{
logWarning
()
<<
"Failed to detect file type for "
<<
filename
;
logWarning
()
<<
"Failed to detect file type for "
<<
VIVY_LOG_QUOTED
(
filename
)
;
return
;
return
;
}
}
...
@@ -353,7 +354,8 @@ MainWindow::openDocument() noexcept
...
@@ -353,7 +354,8 @@ MainWindow::openDocument() noexcept
addTab
(
newView
);
addTab
(
newView
);
}
}
}
catch
(
const
std
::
runtime_error
&
e
)
{
}
catch
(
const
std
::
runtime_error
&
e
)
{
logError
()
<<
"Failed to load document "
<<
filename
<<
" with error: "
<<
e
.
what
();
logError
()
<<
"Failed to load document "
<<
VIVY_LOG_QUOTED
(
filename
)
<<
" with error: "
<<
e
.
what
();
}
}
}
}
...
@@ -515,7 +517,8 @@ MainWindow::executeDialog(MainWindow *const self, QFileDialog *const dialog) noe
...
@@ -515,7 +517,8 @@ MainWindow::executeDialog(MainWindow *const self, QFileDialog *const dialog) noe
const
QStringList
resList
=
dialog
->
selectedFiles
();
const
QStringList
resList
=
dialog
->
selectedFiles
();
if
(
resList
.
size
()
!=
1
)
{
if
(
resList
.
size
()
!=
1
)
{
self
->
logError
()
<<
"You must select only one file"
;
self
->
logError
()
<<
"You must select only one file, here got "
<<
resList
.
size
()
<<
" files"
;
return
QStringLiteral
(
""
);
return
QStringLiteral
(
""
);
}
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/VivyApplication.cc
+
2
−
2
Voir le fichier @
648084fe
...
@@ -6,7 +6,7 @@ using namespace Vivy;
...
@@ -6,7 +6,7 @@ using namespace Vivy;
VivyApplication
::
VivyApplication
(
int
&
argc
,
char
**
argv
)
VivyApplication
::
VivyApplication
(
int
&
argc
,
char
**
argv
)
:
QApplication
(
argc
,
argv
)
:
QApplication
(
argc
,
argv
)
{
{
VIVY_LOG_CTOR
(
VivyApplication
)
<<
"Construction is OK"
;
VIVY_LOG_CTOR
()
<<
"Construction is OK"
;
}
}
void
void
...
@@ -27,7 +27,7 @@ VivyApplication::setTheme(Theme theme) noexcept
...
@@ -27,7 +27,7 @@ VivyApplication::setTheme(Theme theme) noexcept
stylesheet
.
open
(
QFile
::
ReadOnly
|
QFile
::
Text
);
stylesheet
.
open
(
QFile
::
ReadOnly
|
QFile
::
Text
);
QTextStream
stylesheetStream
(
&
stylesheet
);
QTextStream
stylesheetStream
(
&
stylesheet
);
setStyleSheet
(
stylesheetStream
.
readAll
());
setStyleSheet
(
stylesheetStream
.
readAll
());
logInfo
()
<<
"Theme set using "
<<
sheet
;
logInfo
()
<<
"Theme set using "
<<
VIVY_LOG_QUOTED
(
sheet
)
;
}
}
flushLogSink
();
flushLogSink
();
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter