-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable JS in loadUrl if js should be disabled
git-svn-id: http://svn1.bj.corp.yahoo.com/repos/WebEng/lifesearch/vdom-webkit/VdomBrowser@60479 82b2e94c-9313-0410-8ced-81db5252d7f6
- Loading branch information
agentzh
committed
Jun 12, 2009
1 parent
6f6c902
commit 0195e07
Showing
5 changed files
with
196 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ export PATH=$QTDIR/bin:$PATH | |
#make distclean | ||
/opt/qt4.5/bin/qmake "CONFIG-=debug" -r | ||
#qmake -r | ||
make | ||
make -j2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#ifndef ITERATOR_H | ||
#define ITERATOR_H | ||
|
||
#include <QDebug> | ||
|
||
class Iterator { | ||
public: | ||
Iterator() { | ||
m_count = 0; | ||
m_cur = -1; | ||
} | ||
|
||
void setCount (int count) { | ||
qDebug() << "Setting count to " << count << endl; | ||
m_count = count; | ||
m_cur = -1; | ||
} | ||
|
||
int prev() { | ||
if (m_count <= 0) { | ||
return (m_cur = -1); | ||
} | ||
if (m_cur == -1 || m_cur == 0) { | ||
return (m_cur = m_count - 1); | ||
} | ||
return --m_cur; | ||
} | ||
|
||
int next() { | ||
if (m_count <= 0) { | ||
return (m_cur = -1); | ||
} | ||
if (m_cur == -1 || m_cur == m_count - 1) { | ||
return (m_cur = 0); | ||
} | ||
return ++m_cur; | ||
} | ||
|
||
int cur() { | ||
return m_cur; | ||
} | ||
|
||
void setCur(int cur) { | ||
m_cur = cur; | ||
} | ||
|
||
private: | ||
int m_cur; | ||
int m_count; | ||
}; | ||
|
||
#endif // ITERATOR_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters