Changeset View
Changeset View
Standalone View
Standalone View
core/script/kjs_app.cpp
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | |||||
96 | 96 | | |||
97 | static KJSObject appGetPlatform( KJSContext *, void * ) | 97 | static KJSObject appGetPlatform( KJSContext *, void * ) | ||
98 | { | 98 | { | ||
99 | #if defined(Q_OS_WIN) | 99 | #if defined(Q_OS_WIN) | ||
100 | return KJSString( QString::fromLatin1( "WIN" ) ); | 100 | return KJSString( QString::fromLatin1( "WIN" ) ); | ||
101 | #elif defined(Q_OS_MAC) | 101 | #elif defined(Q_OS_MAC) | ||
102 | return KJSString( QString::fromLatin1( "MAC" ) ); | 102 | return KJSString( QString::fromLatin1( "MAC" ) ); | ||
103 | #else | 103 | #else | ||
104 | return KJSString( QLatin1String( "UNIX" ) ); | 104 | return KJSString( QStringLiteral( "UNIX" ) ); | ||
105 | #endif | 105 | #endif | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | static KJSObject appGetPlugIns( KJSContext *context, void * ) | 108 | static KJSObject appGetPlugIns( KJSContext *context, void * ) | ||
109 | { | 109 | { | ||
110 | KJSArray plugins( context, s_num_fake_plugins ); | 110 | KJSArray plugins( context, s_num_fake_plugins ); | ||
111 | for ( int i = 0; i < s_num_fake_plugins; ++i ) | 111 | for ( int i = 0; i < s_num_fake_plugins; ++i ) | ||
112 | { | 112 | { | ||
Show All 17 Lines | |||||
130 | static KJSObject appGetPrinterNames( KJSContext *context, void * ) | 130 | static KJSObject appGetPrinterNames( KJSContext *context, void * ) | ||
131 | { | 131 | { | ||
132 | return KJSArray( context, 0 ); | 132 | return KJSArray( context, 0 ); | ||
133 | } | 133 | } | ||
134 | 134 | | |||
135 | static KJSObject appGetViewerType( KJSContext *, void * ) | 135 | static KJSObject appGetViewerType( KJSContext *, void * ) | ||
136 | { | 136 | { | ||
137 | // faking a bit... | 137 | // faking a bit... | ||
138 | return KJSString( QLatin1String( "Reader" ) ); | 138 | return KJSString( QStringLiteral( "Reader" ) ); | ||
139 | } | 139 | } | ||
140 | 140 | | |||
141 | static KJSObject appGetViewerVariation( KJSContext *, void * ) | 141 | static KJSObject appGetViewerVariation( KJSContext *, void * ) | ||
142 | { | 142 | { | ||
143 | // faking a bit... | 143 | // faking a bit... | ||
144 | return KJSString( QLatin1String( "Reader" ) ); | 144 | return KJSString( QStringLiteral( "Reader" ) ); | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | static KJSObject appGetViewerVersion( KJSContext *, void * ) | 147 | static KJSObject appGetViewerVersion( KJSContext *, void * ) | ||
148 | { | 148 | { | ||
149 | // faking a bit... | 149 | // faking a bit... | ||
150 | return KJSNumber( fake_acroversion ); | 150 | return KJSNumber( fake_acroversion ); | ||
151 | } | 151 | } | ||
152 | 152 | | |||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |