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
Requêtes de fusion
!7
Add the ASS sub document and the ASS tree
Code
Examiner les modifications
Extraire la branche
Télécharger
Correctifs
Diff brut
Étendre la barre latérale
Fusionnées
Add the ASS sub document and the ASS tree
ass-sub-document
vers
master
Vue d'ensemble
3
Validations
28
Pipelines
0
Modifications
4
Fusionnées
Kubat
a demandé de fusionner
ass-sub-document
vers
master
Il y a 3 ans
Vue d'ensemble
3
Validations
28
Pipelines
0
Modifications
4
Also add views for the ASS tree in read only mode for now
Modification effectuée
Il y a 3 ans
par
Kubat
0
0
Rapports de requête de fusion
Affichage du commit
7c4422fe
Précédent
Suivant
Afficher la dernière version
4 files
+
39
−
28
En ligne
Comparer les modifications
Côte à côte
En ligne
Afficher les modifications des espaces
Afficher un fichier à la fois
Fichiers
4
Vérifiée
7c4422fe
UI: Small tweaks on the ASS line display
· 7c4422fe
Kubat
rédigé
Il y a 3 ans
src/UI/DocumentViews/AssLinesModel.cc
+
1
−
17
Afficher le fichier @ 7c4422fe
Modifier dans l'éditeur de fichier unique
Ouvrir dans Web EDI
Afficher le fichier complet
@@ -68,25 +68,9 @@ AssLinesModel::data(const QModelIndex &index, int role) const noexcept
const
Item
*
line
=
static_cast
<
const
Item
*>
(
index
.
internalPointer
());
const
Item
::
Field
column
=
static_cast
<
Item
::
Field
>
(
index
.
column
());
// Check state only for the IsComment
if
(
role
==
Qt
::
CheckStateRole
&&
column
==
Item
::
Field
::
IsComment
)
{
return
line
->
getIsComment
()
?
Qt
::
Checked
:
Qt
::
Unchecked
;
}
// Is comment is centered
else
if
(
role
==
Qt
::
TextAlignmentRole
&&
column
==
Item
::
Field
::
IsComment
)
{
return
Qt
::
AlignCenter
;
}
// Display role
else
if
(
Qt
::
DisplayRole
==
role
)
{
if
(
Qt
::
DisplayRole
==
role
)
{
switch
(
column
)
{
case
Item
::
Field
::
Style
:
return
line
->
getLineStyle
();
case
Item
::
Field
::
IsComment
:
return
QVariant
();
case
Item
::
Field
::
Text
:
return
line
->
getLineText
();
Chargement en cours