/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
delete m_resolutions;
m_resolutions = 0;
+ emit aspectRatioCountChanged();
emit resolutionsChanged();
}
return 0;
}
-
if (!m_resolutions) {
m_resolutions = new VideoResolutionModel(m_settings, this);
}
}
bool VideoSettings::isReady() const {
- return m_settings;
+ return m_settings != 0;
}
bool VideoSettings::setResolution(const QString& aspectRatio, const QString& resolution) {
return false;
}
+
+int VideoSettings::aspectRatioCount() const {
+ return aspectRatios().count();
+}