Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Andi Sardina Ramos
Okular
Commits
ec385777
Commit
ec385777
authored
May 15, 2006
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IO_ReadOnly -> QIODevice::ReadOnly
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541290
parent
f1cd7756
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
core/document.cpp
core/document.cpp
+4
-4
shell/shell.cpp
shell/shell.cpp
+1
-1
ui/newstuff.cpp
ui/newstuff.cpp
+1
-1
ui/pageviewannotator.cpp
ui/pageviewannotator.cpp
+1
-1
No files found.
core/document.cpp
View file @
ec385777
...
...
@@ -136,7 +136,7 @@ bool KPDFDocument::openDocument( const QString & docFile, const KUrl& url, const
{
// docFile is always local so we can use QFile on it
QFile
fileReadTest
(
docFile
);
if
(
!
fileReadTest
.
open
(
IO
_
ReadOnly
)
)
if
(
!
fileReadTest
.
open
(
Q
IO
Device
::
ReadOnly
)
)
{
d
->
docFileName
.
clear
();
return
false
;
...
...
@@ -1373,7 +1373,7 @@ int KPDFDocument::getTotalMemory()
#ifdef __linux__
// if /proc/meminfo doesn't exist, return 128MB
QFile
memFile
(
"/proc/meminfo"
);
if
(
!
memFile
.
open
(
IO
_
ReadOnly
)
)
if
(
!
memFile
.
open
(
Q
IO
Device
::
ReadOnly
)
)
return
(
cachedValue
=
134217728
);
// read /proc/meminfo and sum up the contents of 'MemFree', 'Buffers'
...
...
@@ -1394,7 +1394,7 @@ int KPDFDocument::getFreeMemory()
#ifdef __linux__
// if /proc/meminfo doesn't exist, return MEMORY FULL
QFile
memFile
(
"/proc/meminfo"
);
if
(
!
memFile
.
open
(
IO
_
ReadOnly
)
)
if
(
!
memFile
.
open
(
Q
IO
Device
::
ReadOnly
)
)
return
0
;
// read /proc/meminfo and sum up the contents of 'MemFree', 'Buffers'
...
...
@@ -1427,7 +1427,7 @@ void KPDFDocument::loadDocumentInfo()
{
//kDebug() << "Using '" << d->xmlFileName << "' as document info file." << endl;
QFile
infoFile
(
d
->
xmlFileName
);
if
(
!
infoFile
.
exists
()
||
!
infoFile
.
open
(
IO
_
ReadOnly
)
)
if
(
!
infoFile
.
exists
()
||
!
infoFile
.
open
(
Q
IO
Device
::
ReadOnly
)
)
return
;
// Load DOM from XML file
...
...
shell/shell.cpp
View file @
ec385777
...
...
@@ -295,7 +295,7 @@ bool Shell::handleCompressed(KUrl & url, const QString &path, const KMimeType::P
return
false
;
}
if
(
!
filterDev
->
open
(
IO
_
ReadOnly
)
)
if
(
!
filterDev
->
open
(
Q
IO
Device
::
ReadOnly
)
)
{
KMessageBox
::
detailedError
(
this
,
i18n
(
"<qt><strong>File Error!</strong> Could not open the file "
...
...
ui/newstuff.cpp
View file @
ec385777
...
...
@@ -892,7 +892,7 @@ void NewStuffDialog::slotItemResult( KIO::Job * job )
/* UNCOMPRESS (specify uncompression method)
KTar tar( fileName, "application/x-gzip" );
tar.open( IO
_
ReadOnly );
tar.open(
Q
IO
Device::
ReadOnly );
const KArchiveDirectory *dir = tar.directory();
dir->copyTo( "somedir" );
tar.close();
...
...
ui/pageviewannotator.cpp
View file @
ec385777
...
...
@@ -371,7 +371,7 @@ PageViewAnnotator::PageViewAnnotator( PageView * parent, KPDFDocument * storage
{
// load the tools from the 'xml tools definition' file. store the tree internally.
QFile
infoFile
(
locate
(
"data"
,
"oKular/tools.xml"
)
);
if
(
infoFile
.
exists
()
&&
infoFile
.
open
(
IO
_
ReadOnly
)
)
if
(
infoFile
.
exists
()
&&
infoFile
.
open
(
Q
IO
Device
::
ReadOnly
)
)
{
QDomDocument
doc
(
"annotatingTools"
);
if
(
doc
.
setContent
(
&
infoFile
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment