summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gzip.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2013-02-23 18:07:02 (GMT)
committerPetri Lehtinen <petri@digip.org>2013-02-23 18:09:45 (GMT)
commitf484efdb60cf97d04eed4f87f838ad27e1ed241f (patch)
treeffeb06ea4d02323564edb7bbe9609a7078c852fb /Lib/test/test_gzip.py
parentd2132144a475bad3676f80d55098b0daba6110f4 (diff)
parent8b945148e3f98b9c6c51bfaa830e779979713b82 (diff)
downloadcpython-f484efdb60cf97d04eed4f87f838ad27e1ed241f.zip
cpython-f484efdb60cf97d04eed4f87f838ad27e1ed241f.tar.gz
cpython-f484efdb60cf97d04eed4f87f838ad27e1ed241f.tar.bz2
Issue #14720: sqlite3: Convert datetime microseconds correctly
Diffstat (limited to 'Lib/test/test_gzip.py')
0 files changed, 0 insertions, 0 deletions
tions are ** met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in ** the documentation and/or other materials provided with the ** distribution. ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor ** the names of its contributors may be used to endorse or promote ** products derived from this software without specific prior written ** permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] QTextDocument *newDocument = new QTextDocument; //! [0] //! [1] QTextEdit *editor = new QTextEdit; QTextDocument *editorDocument = editor->document(); //! [1] //! [2] QTextEdit *editor = new QTextEdit(parent); editor->setHtml(aStringContainingHTMLtext); editor->show(); //! [2] //! [3] QTextDocument *document = editor->document(); //! [3] //! [4] QTextCursor cursor = editor->textCursor(); //! [4] //! [5] editor->setTextCursor(cursor); //! [5] //! [6] textEdit.show(); textCursor.beginEditBlock(); for (int i = 0; i < 1000; ++i) { textCursor.insertBlock(); textCursor.insertText(paragraphText.at(i)); } textCursor.endEditBlock(); //! [6]