diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-15 04:52:18 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-15 04:52:18 (GMT) |
commit | fe591031a8550a8a8c97fa08f0bdf8c2f9d4cf93 (patch) | |
tree | b2b88f39afa20fd0dd1d69938cca74c875820a55 /demos | |
parent | 5b849b15fe89c3645a81368faf6b8574c337b4c5 (diff) | |
parent | 454096217002f02379b4450e6e3d312f46c8cda9 (diff) | |
download | Qt-fe591031a8550a8a8c97fa08f0bdf8c2f9d4cf93.zip Qt-fe591031a8550a8a8c97fa08f0bdf8c2f9d4cf93.tar.gz Qt-fe591031a8550a8a8c97fa08f0bdf8c2f9d4cf93.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Diffstat (limited to 'demos')
-rw-r--r-- | demos/browser/browserapplication.cpp | 1 | ||||
-rw-r--r-- | demos/textedit/textedit.cpp | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/demos/browser/browserapplication.cpp b/demos/browser/browserapplication.cpp index 5ef3ce6..b27b5c1 100644 --- a/demos/browser/browserapplication.cpp +++ b/demos/browser/browserapplication.cpp @@ -205,6 +205,7 @@ void BrowserApplication::postLaunch() if (directory.isEmpty()) directory = QDir::homePath() + QLatin1String("/.") + QCoreApplication::applicationName(); QWebSettings::setIconDatabasePath(directory); + QWebSettings::setOfflineStoragePath(directory); setWindowIcon(QIcon(QLatin1String(":browser.svg"))); diff --git a/demos/textedit/textedit.cpp b/demos/textedit/textedit.cpp index 17516b4..5eee855 100644 --- a/demos/textedit/textedit.cpp +++ b/demos/textedit/textedit.cpp @@ -336,6 +336,8 @@ void TextEdit::setupTextActions() comboStyle->addItem("Ordered List (Decimal)"); comboStyle->addItem("Ordered List (Alpha lower)"); comboStyle->addItem("Ordered List (Alpha upper)"); + comboStyle->addItem("Ordered List (Roman lower)"); + comboStyle->addItem("Ordered List (Roman upper)"); connect(comboStyle, SIGNAL(activated(int)), this, SLOT(textStyle(int))); @@ -573,6 +575,12 @@ void TextEdit::textStyle(int styleIndex) case 6: style = QTextListFormat::ListUpperAlpha; break; + case 7: + style = QTextListFormat::ListLowerRoman; + break; + case 8: + style = QTextListFormat::ListUpperRoman; + break; } cursor.beginEditBlock(); |