Changeset - bb5876e1e5d6
[Not reviewed]
snapshots
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-09-20 08:23:55
hy@ozderya.net
plot is autoscaled by default, fix snapshotview unzoom glitch
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
plot.cpp
Show inline comments
 
@@ -15,25 +15,25 @@
 

	
 
  You should have received a copy of the GNU General Public License
 
  along with serialplot.  If not, see <http://www.gnu.org/licenses/>.
 
*/
 

	
 
#include <QRectF>
 
#include "plot.h"
 
Plot::Plot(QWidget* parent) :
 
    QwtPlot(parent),
 
    zoomer(this->canvas(), false),
 
    sZoomer(this, &zoomer)
 
{
 
    isAutoScaled = false;
 
    isAutoScaled = true;
 

	
 
    QObject::connect(&zoomer, &Zoomer::unzoomed, this, &Plot::unzoomed);
 

	
 
    zoomer.setZoomBase();
 
    grid.attach(this);
 

	
 
    rectItem.setRect(QRectF(0,0,100,1));
 
    // rectItem.attach(this);
 

	
 
    darkBackground(false);
 
}
 

	
0 comments (0 inline, 0 general)