blob: ed16f5d0b0b588913bb045a33bf7ceb1277faac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-libgui_src_workspace-model.cc,v 1.1 2016/02/16 04:21:40 dbj Exp $
Changes for compiling with Qt5 instead of Qt4
$NetBSD: patch-libgui_src_workspace-model.cc,v 1.1 2016/02/16 04:21:40 dbj Exp $
--- libgui/src/workspace-model.cc.orig 2015-05-23 14:21:53.000000000 +0000
+++ libgui/src/workspace-model.cc
@@ -132,7 +132,7 @@ workspace_model::data (const QModelIndex
{
QString class_chars = resource_manager::storage_class_chars ();
int actual_class
- = class_chars.indexOf (_scopes[idx.row ()].toAscii ());
+ = class_chars.indexOf (_scopes[idx.row ()].toLatin1 ());
if (actual_class >= 0)
return QVariant (_storage_class_colors.at (actual_class));
else
@@ -172,7 +172,7 @@ workspace_model::data (const QModelIndex
QString class_chars = resource_manager::storage_class_chars ();
int actual_class
- = class_chars.indexOf (_scopes[idx.row ()].toAscii ());
+ = class_chars.indexOf (_scopes[idx.row ()].toLatin1 ());
if (actual_class >= 0)
{
|