diff options
| author | 2011-03-12 13:43:52 +0000 | |
|---|---|---|
| committer | 2011-03-12 13:43:52 +0000 | |
| commit | e7e52e90397c8573b0d02598eb44f180e24996fc (patch) | |
| tree | a951bc98830f34749f0a300e948d2e5ac98f8bef /src/modules/objects/KvsObject_pixmap.cpp | |
| parent | '...' correctness, remove trailing <br>s in the trayicon tooltip (diff) | |
| download | KVIrc-e7e52e90397c8573b0d02598eb44f180e24996fc.tar.gz KVIrc-e7e52e90397c8573b0d02598eb44f180e24996fc.tar.bz2 KVIrc-e7e52e90397c8573b0d02598eb44f180e24996fc.zip | |
First public version of webkit kvs interfacing (wip)... missing doc
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5565 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/KvsObject_pixmap.cpp')
| -rw-r--r-- | src/modules/objects/KvsObject_pixmap.cpp | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/modules/objects/KvsObject_pixmap.cpp b/src/modules/objects/KvsObject_pixmap.cpp index 64128ef5d..a84798f3f 100644 --- a/src/modules/objects/KvsObject_pixmap.cpp +++ b/src/modules/objects/KvsObject_pixmap.cpp @@ -239,27 +239,12 @@ KVSO_CLASS_FUNCTION(pixmap,save) else if(m_pPixmap) m_pPixmap->save(szFile); return true; } -/* -KVSO_CLASS_FUNCTION(pixmap,save) -{ - //CHECK_INTERNAL_POINTER(m_pPixmap) - QString szFile; - KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("file",KVS_PT_STRING,0,szFile) - KVSO_PARAMETERS_END(c) - if(!QFile::exists(szFile)) - { - c->warning(__tr2qs_ctx("I can't find the specified file '%Q'.","objects"),&szFile); - return true; - } - if (m_pAnimatedPixmap) delete m_pAnimatedPixmap; - m_pAnimatedPixmap= new KviAnimatedPixmap(szFile); - connect(m_pAnimatedPixmap,SIGNAL(frameChanged()),this,SLOT(frameChanged())); - //bPixmapModified=true; - return true; +void KvsObject_pixmap::setInternalPixmap(QPixmap *pPixmap) +{ + delete m_pPixmap; + m_pPixmap=pPixmap; } -*/ KVSO_CLASS_FUNCTION(pixmap,loadFromMemoryBuffer) { KviKvsObject * pObject; |
