char * sp_kde_get_write_filename (gchar *dir, gchar *filter, gchar *title) { QString fileName; QTimer timer; QObject::connect (&timer, SIGNAL (timeout ()), Bridge, SLOT (TimerHook ())); timer.changeInterval (1000 / SP_FOREIGN_FREQ); SPKDEModal = TRUE; fileName = KFileDialog::getSaveFileName (QString::fromLocal8Bit((const char *) dir), QString::fromLocal8Bit((const char *) filter), NULL, QString::fromUtf8((const char *) title)); SPKDEModal = FALSE; if (fileName.isEmpty()) return NULL; return g_strdup (fileName.local8Bit()); }
void KTimeout::resetTimer(int id, int timeout) { QTimer *t = _timers.find(id); if (t) { t->changeInterval(timeout); } }