+
+ if (props.contains("proxy") && props.value("proxy") != "-") {
+ KFileItem f(KFileItem::Unknown, KFileItem::Unknown, KUrl(props.value("proxy")), true);
+ QFrame* line = new QFrame();
+ line->setFrameShape(QFrame::HLine);
+ line->setFrameShadow(QFrame::Sunken);
+ m_proxyContainer = new QFrame();
+ m_proxyContainer->setFrameShape(QFrame::NoFrame);
+ QHBoxLayout *l = new QHBoxLayout;
+ l->addWidget(new QLabel(i18n("Proxy clip: %1", KIO::convertSize(f.size()))));
+ l->addStretch(5);
+ QPushButton *pb = new QPushButton(i18n("Delete proxy"));
+ l->addWidget(pb);
+ connect(pb, SIGNAL(clicked()), this, SLOT(slotDeleteProxy()));
+ m_proxyContainer->setLayout(l);
+ if (t == IMAGE) {
+ m_view.tab_image->layout()->addWidget(line);
+ m_view.tab_image->layout()->addWidget(m_proxyContainer);
+ }
+ else if (t == AUDIO) {
+ m_view.tab_audio->layout()->addWidget(line);
+ m_view.tab_audio->layout()->addWidget(m_proxyContainer);
+ }
+ else {
+ m_view.tab_video->layout()->addWidget(line);
+ m_view.tab_video->layout()->addWidget(m_proxyContainer);
+ }
+ }
+