Commit 7bc865e5 authored by Boudewijn Rempt's avatar Boudewijn Rempt

debug--

parent 46525e2b
......@@ -615,7 +615,7 @@ bool SvgParser::parseSymbol(const KoXmlElement &e)
if (title.isEmpty()) svgSymbol->title = id;
if (svgSymbol->shape->boundingRect() == QRectF(0.0, 0.0, 0.0, 0.0)) {
qWarning() << "Symbol" << id << "seems to be empty, discarding";
warnFlake() << "Symbol" << id << "seems to be empty, discarding";
delete svgSymbol;
return false;
}
......
......@@ -86,7 +86,6 @@ void KoFileDialog::setCaption(const QString &caption)
void KoFileDialog::setDefaultDir(const QString &defaultDir)
{
qDebug() << d->defaultDirectory << d->dialogName << getUsedDir(d->dialogName);
if (d->defaultDirectory.isEmpty()) {
QFileInfo f(defaultDir);
d->defaultDirectory = f.absoluteFilePath();
......@@ -131,12 +130,6 @@ QString KoFileDialog::selectedMimeType() const
void KoFileDialog::createFileDialog()
{
qDebug() << "createFileDialog. Parent:" << d->parent
<< "Caption:" << d->caption
<< "Default directory:" << d->defaultDirectory
<< "proposed filename" << d->proposedFileName
<< "Default filter:" << d->defaultFilter;
d->fileDialog.reset(new QFileDialog(d->parent, d->caption, d->defaultDirectory + "/" + d->proposedFileName));
KConfigGroup group = KSharedConfig::openConfig()->group("File Dialogs");
......@@ -193,11 +186,9 @@ void KoFileDialog::createFileDialog()
d->fileDialog->setNameFilters(d->filterList);
if (!d->proposedFileName.isEmpty()) {
qDebug() << "Finding the right mimetype for the given file" << d->defaultDirectory;
QString mime = KisMimeDatabase::mimeTypeForFile(d->proposedFileName);
QString description = KisMimeDatabase::descriptionForMimeType(mime);
Q_FOREACH(const QString &filter, d->filterList) {
qDebug() << "\tConsidering" << filter;
if (filter.startsWith(description)) {
d->fileDialog->selectNameFilter(filter);
break;
......
......@@ -104,7 +104,7 @@ ShapeCollectionDocker::ShapeCollectionDocker(QWidget *parent)
m_quickView->setSelectionMode(QListView::SingleSelection);
m_quickView->setResizeMode(QListView::Adjust);
m_quickView->setFlow(QListView::LeftToRight);
m_quickView->setGridSize(QSize(40, 44));
m_quickView->setGridSize(QSize(128, 128));
m_quickView->setTextElideMode(Qt::ElideNone);
m_quickView->setWordWrap(true);
setWidget(m_quickView);
......@@ -137,8 +137,6 @@ void ShapeCollectionDocker::loadDefaultShapes()
Q_FOREACH (const KoShapeTemplate &shapeTemplate, factory->templates()) {
qDebug() << "Adding factory" << shapeTemplate.name;
oneAdded = true;
KoCollectionItem temp;
temp.id = shapeTemplate.id;
......@@ -166,8 +164,6 @@ void ShapeCollectionDocker::loadDefaultShapes()
}
}
qDebug() << "quickList:" << quicklist.size();
CollectionItemModel *quickModel = new CollectionItemModel(this);
quickModel->setShapeTemplateList(quicklist);
m_quickView->setModel(quickModel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment